I am working on a package in R, and am looking for a way to document the sources of external data stored in the inst/extdata folder. I know that data in the /data folder can be documented with roxygen as per this SO post.
The trouble seems to be that external data is not exported into the namespace of the package, and therefore tying an roxygen help document to it poses an issue. Is there a way to overcome this and to document external data similar to the method for items in the /data folder?
Here is the reproducible (on linux) example of solution I provided in comments.
Code below will create minimal package
DESCRIPTIONfileext/data/data1.csvcsv data fileman/data1.RdR documentation fileThen it will build and install package.
Now see that manual can be found
As you can see we can refer to documentation of extdata using any name defined in
aliasinsideRdfile.