Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R CMD Check: Unusual Checking installed package size note

Tags:

package

r

cran

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)

like image 705
Adam Spannbauer Avatar asked Jul 28 '16 14:07

Adam Spannbauer


1 Answers

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.

like image 98
Adam Spannbauer Avatar answered Nov 15 '22 11:11

Adam Spannbauer