Reputation: 151
I have run devtools::check()
on my R package and obtained the following error:
LazyData DB of 14.3 MB without LazyDataCompression set
One of the suggested solutions to this problem is to delete
LazyData:true
from the description file. However, I need lazy loading for my datasets so that they get loaded into the environment upon installation.
Upvotes: 7
Views: 1610
Reputation: 151
One solution that I have found is the following:
Add
LazyDataCompression:xz
to the description file.
You might need to resave your data files using the xz compression using the function resaveRdafiles()
of the tools
package, as follows:
resaveRdaFiles("data/yourDataFile.RData",compress="xz")
To check that the compression has been done successfully, use:
checkRdaFiles("data/")
Upvotes: 10