Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size of packaged data #147

Open
jack89roberts opened this issue Jun 7, 2022 · 0 comments
Open

Size of packaged data #147

jack89roberts opened this issue Jun 7, 2022 · 0 comments

Comments

@jack89roberts
Copy link
Contributor

will need to be reduced/moved for CRAN.

❯ checking installed package size ... NOTE
    installed size is 21.4Mb
    sub-directories of 1Mb or more:
      data      4.2Mb
      doc       3.8Mb
      extdata  12.2Mb

From https://r-pkgs.org/data.html#data-cran :

Generally, package data should be smaller than a megabyte - if it’s larger you’ll need to argue for an exemption. This is usually easier to do if the data is in its own package and won’t be updated frequently. You should also make sure that the data has been optimally compressed:

Run tools::checkRdaFiles() to determine the best compression for each file.

Re-run usethis::use_data() with compress set to that optimal value. If you’ve lost the code for recreating the files, you can use tools::resaveRdaFiles() to re-save in place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant