path.functions()
accepts a pathname and constructs a set of
path-related functions, similar to this.path()
and associated.
path.functions(file, local = FALSE, n = 0,
envir = parent.frame(n + 1),
matchThisEnv = getOption("topLevelEnvironment"),
srcfile = if (n) sys.parent(n) else 0)
An environment with at least the following bindings:
Function with formals (original = FALSE, contents = FALSE)
which
returns the
normalized
file
path, the original file path, or the contents of the file.
Function with no formals which returns the directory of the
normalized
file
path.
Function with formals (..., .. = 0)
which constructs file paths,
starting with the file's directory.
Function with formals (..., .. = 0)
which constructs file paths,
starting with the project root.
Functions with formals (path)
which turn absolute paths into
relative paths, against the file's directory / / project root.
Function with no formals which returns the line number of the executing
expression in file
.
a character string giving the pathname of the file or URL.
See ?this.path()
.