I'm experimenting with writing my own package using the guidance in Wickham and Bryan's book, "R Packages." My package is solely a convenience for myself. I have no intention to publish it.
In addition to various utility functions, I have some data sets that I’ve wrangled be made tidy for easy use. I’ve added those data sets to the data folder of my package as .rda files. The functions for that gather and wrangle the data sets are included in the package.
Some of my package’s functions rely on that data to generate results, but my
checks are failing because examples in the
roxygen headers for those functions can’t seem to see that the data is available.
Are there best practices somewhere to help with accessing internal package data?
Any guidance is most appreciated!