checkRelative {reproducible} | R Documentation |
An alternative to basename
and dirname
when there are sub-folders
Description
This confirms that the files
which may be absolute actually
exist when compared makeRelative(knownRelativeFiles, absolutePrefix)
.
This is different than just using basename
because it will include any
sub-folder structure within the knownRelativePaths
Usage
checkRelative(
files,
absolutePrefix,
knownRelativeFiles,
verbose = getOption("reproducible.verbose")
)
Arguments
files |
A character vector of files to check to see if they are the same
as |
absolutePrefix |
A directory to "remove" from |
knownRelativeFiles |
A character vector of relative filenames, that could have sub-folder structure. |
verbose |
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., |