root_dir: Shortcut for specifying paths relative to root

Description Usage Arguments Value Examples

Description

root_dir is a wrapper around getwd that appends the path-part to the location specified by the user-supplied argument.

Usage

1
root_dir(pathpart)

Arguments

pathpart

A string to the path

Value

A character vector with the path to the root directory appended to the path-part specified.

Examples

1
2
3
# Supply path-part without preceding forward slash

##root_dir("myfolder/test.txt")

darrellpenta/dissertate documentation built on May 14, 2019, 6:10 p.m.