revdepcheck icon indicating copy to clipboard operation
revdepcheck copied to clipboard

results in package.revdep folder

Open rhijmans opened this issue 4 years ago • 3 comments

I would prefer that revdepcheck writes to a folder that is outside of my package. R CMD check writes to package.Rcheck. Could you do something similar for revdepcheck? Perhaps package.Revdep ? Or make that an option?

rhijmans avatar Jul 05 '20 21:07 rhijmans

I came here to request the same. It pollutes the package directory and gets picked up by the package build processes resulting in unnecessary very long processing time and a hughe package source bundle.

ghost avatar Nov 15 '20 11:11 ghost

@helix123 : you can add a .Rbuildignore (edited after bbolker's comment) file to avoid adding the revdep folder to the build. However, you cannot build a package when revdepcheck is running.

rhijmans avatar Nov 15 '20 18:11 rhijmans

I think that's .Rbuildignore? From Writing R Extensions:

To exclude files from being put into the package, one can specify a list of exclude patterns in file .Rbuildignore in the top-level source directory. These patterns should be Perl-like regular expressions (see the help for regexp in R for the precise details), one per line, to be matched case-insensitively against the file and directory names relative to the top-level package source directory. In addition, directories from source control systems53 or from eclipse54, directories with names ending .Rcheck or Old or old and files GNUMakefile55, Read-and-delete-me or with base names starting with ‘.#’, or starting and ending with ‘#’, or ending in ‘~’, ‘.bak’ or ‘.swp’, are excluded by default. In addition, those files in the R, demo and man directories which are flagged by R CMD check as having invalid names will be excluded.

bbolker avatar Nov 15 '20 19:11 bbolker