powered by
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.
os.path.join
pathJoin(...)
string A string with the merged path
string
A set of strings to join
pathJoin("my_base_path/helpers", "superfunction.R") # 'my_base_path/helpers/superfunction.R'
Run the code above in your browser using DataLab