I think you'll get rid of the warnings/errors if you check by doing R CMD build
first and then running R CMD check
on the tarball (this is recommended practice: http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Checking-packages ). I don't think you actually need to put .git
etc. in .Rbuildignore
, as R now automatically ignores .git, .svn etc. files: see utils.R
in the tools
package (this has been true for a while)
As @hadley points out in comments below, devtools
automatically follows this route (i.e. it builds the tarball and then checks it rather than checking the directory directly)
Also see: Blacklist .git folder in R CMD check