absolutize {StabPerf} | R Documentation |
Makes a relative file path absolute
Description
Creates an absolute path from a relative one, given a base directory. If path is already absolute, it is simply returned as-is.
Usage
absolutize(path,base=getOption("edaglobal.root"))
Arguments
path |
character. Relative path to be made absolute. |
base |
character. Base path to which path will be made absolute. |
Details
Tries to make a file system path absolute (i.e. rooted), if it is not already. This is not fool-proof, however. Absolute paths are determined to be those paths beginning with a /
, which may not be the case on all platforms.
Value
path |
character. Absolute version of path |
See Also
file.path
Examples
abs.path <- absolutize("log/file.txt", "/base/dir")
[Package
StabPerf version 0.5
Index]