I'm building my first R package and sorting through the differences between the ext-data, data, and raw-data folders (and Hadley dev methods).
I have a script in raw-data that generates a file that is used to test data loading and parsing.
In that script, should I use: library('gdata')
, or should I include gdata (or another package) in the DESCRIPTION for the package?
I know Hadley advises not including packages with library
, but I wasn't sure if that only applied to the scripts bundled into the final package, or if it also applied to the raw-data folder.
}`. This will allow you to keep your loaded namespace relatively free and no requiring unnecessary R package for building and install the package. But will also not cause problems in examples if the package isn't present in someone else's install. I may be wrong though. What is wrong with placing the given data in data/ as a `.rda` format?
– TJGorrie Mar 19 '18 at 17:02