I'm fairly new to package development and I am about to start the process of submitting a package to CRAN. I've been striving to get down to 0 errors, 0 warnings, & 0 notes. There is 1 note left that I have not been able to correct (and appears as if it might be an issue with the check?).
When running the check I get the note:
* checking installed package size ... NOTE
installed size is 19.0Mb
sub-directories of 1Mb or more:
Meta 5.0Mb
R 3.0Mb
help 5.0Mb
html 2.0Mb
However, when I navigate to the where the package is installed, none of these printed sizes match up with what Windows Explorer shows. The entire package folder is only 84KB, the Meta folder: 2KB, the R folder: 58KB, the help folder: 19KB, and the html folder 3KB.
I am building the package using R version 3.3.0
. What could be causing both the large package size and the discrepancy between R CMD Check
and Windows?
Do imports affect the size during the check? (Imports: dplyr, tidyr, magrittr, stringr, SnowballC, igraph, proxy, tm
)
The issue appears to be related to the R Studio "Check" button's version of the R CMD check
(located on the Build pane). Running the check with devtools::check()
produced 0 errors, 0 warnings, & 0 notes. There must be some difference in how the two tools assess a package's installed size. The package has now been successfully uploaded to CRAN.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With