Error deleting Devtools document

I am collecting the R data packet and I have so far documented the data without problems. The file named charges_ay.R , located in the R folder in the repo packages, includes the following:

 #' 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 try to run devtools::document from the package base (as I have for 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 so far, I'm a little confused as the process and file documentation are the same.

Any help would be greatly appreciated!

+5
source share
1 answer

When I came across this in my own package, this seemed to be a workflow problem. Try either run use_data(charges_ay) before document() , or add use_data(charges_ay) to the end of your data generating file.

+2
source

Source: https://habr.com/ru/post/1245707/


All Articles