basename
and dirname
when there are sub-foldersR/paths.R
checkRelative.Rd
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
checkRelative(
files,
absolutePrefix,
knownRelativeFiles,
verbose = getOption("reproducible.verbose")
)
A character vector of files to check to see if they are the same
as knownRelativeFiles
, once the absolutePrefix
is removed
A directory to "remove" from files
to compare
to knownRelativeFiles
A character vector of relative filenames, that could have sub-folder structure.
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., options('reproducible.verbose' = 0) to reduce to minimal