Using roxygen2 and devtools to author my own package.
I have some data I would like to include with my package (stored at data/mydata.rda).
I have documented this data in roxygen format at R/mydata.R:
#'This is my data
#'
#'This is my description
#'
#'@name mydata
#'@docType data
##### omitting @format for brevity
"mydata"
In DESCRIPTION, I have LazyData: true
Yet when I run document(), I get an error message that "mydata is not an exported object from 'namespace: mypackage'"
What gives? Hadley's guide says never to export data, and you are not supposed to directly edit NAMESPACE when using roxygen2, so I am at a bit of a loss.