I am putting together an R data package, and I have been documenting the datasets without issue until now. The following is included in a file called charges_ay.R
located in the R
folder in package repo.
#' Student Charges for Academic Year programs.
#'
#' For more information, download a data dictionary from the IPEDS website.
#'
#' Survey years 2002 - 2014.
#'
#' @source http://nces.ed.gov/ipeds/datacenter/DataFiles.aspx
#' @format Data frame with columns
"charges_ay"
When I attempt to run devtools::document
from the base of the package (as I have for the other files), I get the following error:
> devtools::document()
Updating ripeds documentation
Loading ripeds
Error: 'charges_ay' is not an exported object from 'namespace:ripeds'
Given that everything has worked fine until now, I am bit confused as the process and file documentation are all the same.
Any help will be greatly appreciated!
When I ran in to this in my own package, it seemed to be a workflow issue. Try either running use_data(charges_ay)
prior to document()
, or adding use_data(charges_ay)
at the end of your data-generating file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With