简体   繁体   English

我不想在R包中记录数据集

[英]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. 我正在编写自己的程序包,并计划发布到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. 而且我的函数将使用一些数据,因此我创建了一个名为“ keyboardvalue.csv”的csv文件,此csv文件仅用于我的函数,不适用于程序包用户,并且程序包用户无法访问它。

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. 但是,当我使用“检查程序包”时,总会出现警告:未记录的数据集:'keyboardvalue'程序包中的所有用户级对象都应具有文档条目。

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" 该文件的文件路径是“ mypackage / data / keyboardvalue.csv”

Answer myself: 回答自己:

Save my data into sysdata.rda and put it in the R folder in my package. 将我的数据保存到sysdata.rda ,并将其放在程序包的R文件夹中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 编写R包:需要一个我没有明确调用的包 - Writing an R package: needing a package I don't explicitly call 如何在 Rconnect 上部署任何 R package? 我想在 Rconnect 服务器上部署 cerebroApp 但不知道如何部署 - How to deploy any R package on Rconnect? I want to deploy cerebroApp on Rconnect server but don't know how to deploy it R:Rvest - 得到了我不想要的隐藏文字 - R: Rvest - got hidden text i don't want 当我不想要它时,R会将我的第一列视为行名列。 我该怎么办? - R is treating my first column as a row name column when I don't want it. What should I do? 我的因素在做作期间变成整数:我不想要这个 - My Factors are turned into integer during affectation: I don't want this 数据集未出现在我的R包中 - dataset does not appear in my R package 您好,我想通过我在 R 中的数据集创建 tsne plot。 但是当我写命令时,我得到了这个错误 - hello i want create tsne plot by my dataset in R . but when i write commands i get this error 我不明白为什么 R 认为我的数据集在我的数据集中包含元素对重复项? - I can't figure out why R thinks that my dataset contains element pair duplicats in my dataset? R Markdown 关键字未出现在文档中 - R Markdown keywords don't appear in the document 在我创建的 R 数据 package 中找不到数据集 - dataset not found in R data package I created
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM