lintr provides an equivalent argument, that is TRUE by default.
See lint_dir / lint_package:
@param relative_path if \code{TRUE}, file paths are printed using their path
#' relative to the base directory. If \code{FALSE}, use the full
#' absolute path.
Could the name relative_path be confused:
it is supposed to indicate that the paths in the results will be written relative to the user-specified directory;
when the user provides a list of files or directories that should be ignored, should relative_path also dictate whether the ignored directories are specified relative to the analysed directory
Reason:
Running dupree_package on
aoos
duringcode_as_data
returned a data.frame that looks like:I would rather the file paths were relative to the package-path or dir-path that was passed into
dupree_*
(for this particular analysis), that is:lintr
provides an equivalent argument, that is TRUE by default. Seelint_dir
/lint_package
:Could the name
relative_path
be confused:relative_path
also dictate whether the ignored directories are specified relative to the analysed directory