I'm implementing an R package, where I have several big .rda data files in the 'data' folder.
When I build the package (with R CMD build to create the .tar.gz packed file), also the data files are included in the package, and since they are really big, this makes the build (as well the check) process very slow, and the final package size uselessly big.
These data are downloaded from some DB through a function of the package, so the intent is not to include the data in the package, but to let the user populates the data folder from its own DB. The data that I use are for test, and it makes no sense to include them into the package.
Summarizing my question is: is it possible to keep the data in the 'data' folder, but exclude them from the built package?
Edit
Ok, I found a first solution by creating a file named .Rbuildignore
that contains a line:
^data/.+$
anyway the problem remains for the R CMD install and R CMD check processes, that do not take into account the .Rbuildignore
file.
Any suggestion to exclude a folder also from the install/check processes?