I'm updating a package that is currently on CRAN. Running devtools::check()
locally consistently gives the WARNING
> checking package subdirectories ... WARNING
Found the following directory with the name of a version control directory:
These should not be in a package tarball.
./.git
and NOTE
> checking for hidden files and directories ... NOTE
Found the following hidden files and directories:
.git
These were most likely included in error. See section 'Package
structure' in the 'Writing R Extensions' manual.
CRAN-pack does not know about
.git
When I check on winbuilder, I no longer get the WARNING, but I do get the NOTE.
This is my .Rbuildignore file, which should be ignoring the .git folder, but isn't for some reason (?)
^.*\.Rproj$
^\.Rproj\.user$
^cran-comments\.md$
^\.Rhistory$
^docs$
^\.travis\.yml$
^CRAN-RELEASE$
^\.git$
^\.github$
I recently migrated from Windows to Mac (os 12.1), and I'm running R version 4.1.1 and RStudio version 1.4.1717. Thanks for any help - I can't figure this one out, and it's making me crazy.
EDIT: For reproducibility, my package is currently on Github at https://github.com/mbtyers/riverdist