r-lib / revdepcheck

R package reverse dependency checking
https://revdepcheck.r-lib.org
Other
99 stars 31 forks source link

results in package.revdep folder #264

Open rhijmans opened 4 years ago

rhijmans commented 4 years ago

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?

ghost commented 3 years ago

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.

rhijmans commented 3 years ago

@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.

bbolker commented 3 years ago

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.