joinPath: A path join function (adapted from Gmisc)

Description Usage Arguments Value Examples

View source: R/pathlib.R

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

1

Arguments

...

A set of strings to join

Value

string A string with the merged path

Examples

1
2
pathJoin("my_base_path/helpers", "superfunction.R")
# 'my_base_path/helpers/superfunction.R'

jlucasmckay/motionTools documentation built on Feb. 25, 2022, 7:53 a.m.