Learn R Programming

Gmisc (version 3.0.0)

pathJoin: A path join function

Description

This function joins strings into a valid path. It is a simple version of python's os.path.join and fixes simple problems such as having/not having trailing / in each section.

Usage

pathJoin(...)

Value

string A string with the merged path

Arguments

...

A set of strings to join

Examples

Run this code
pathJoin("my_base_path/helpers", "superfunction.R")
# 'my_base_path/helpers/superfunction.R'

Run the code above in your browser using DataLab