简体   繁体   中英

I don't want to document a dataset in my R package

I'm writing my own package and plan to publish to R CRAN.

And my function will use some data so I create a csv file called "keyboardvalue.csv", this csv file is only for my function, not for the package user, and package user can not access it.

But when I use "Check Package", there is always a warning says : Undocumented data sets: 'keyboardvalue' All user-level objects in a package should have documentation entries.

The question is, this data is not a user-level data, and I don't want to make a document for it, how could I solve that? The file path of this file is "mypackage/data/keyboardvalue.csv"

Answer myself:

Save my data into sysdata.rda and put it in the R folder in my package.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM