I have developed an R package where I need to use a large dataset for testing. However, I don't want to bundle this dataset with the package (as doing so increases the package size from a few hundred KB to a few hundred MB).
One option is to add this file to .Rbuildignore
. However, whilst this allows my tests to pass with devtools::test()
, they then fail with devtools::check()
. Removing this file from .Rbuildignore
allows devtools::check()
to pass, but increases the package size.
Is there any way to make this file findable by devtools::check()
whilst not bundling it with the package?