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 formals NULL
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's root directory.
Functions with formals (path)
which turn
absolute paths into relative paths, against the file's directory / /
project's root directory.
Function with formals NULL
which returns the line number
of the executing expression in file
.
a character string giving the pathname of the file or URL.
See ?sys.path()
.
See ?this.path()
.