alan-turing-institute / network-comparison

An R package implementing the NetEMD and NetDis network comparison measures
MIT License
14 stars 3 forks source link

Size of packaged data #147

Open jack89roberts opened 2 years ago

jack89roberts commented 2 years ago

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.