非标准文件 "data-raw" 关于 building/checking R 包的注释

non standard file "data-raw" note on building/checking a package in R

我收到此警告

Non-standard file/directory found at top level:
  ‘data-raw’

在构建我的包时,甚至有建议创建此文件夹来创建包数据http://r-pkgs.had.co.nz/data.html#data-sysdata

对此有任何评论,或者我是否需要特定设置才能删除此消息。

使用时,data-raw要加上.Rbuildignore。如 Data section of Hadley's R-Packages book 中所述(也在问题中链接)

Often, the data you include in data/ is a cleaned up version of raw data you’ve gathered from elsewhere. I highly recommend taking the time to include the code used to do this in the source version of your package. This will make it easy for you to update or reproduce your version of the data. I suggest that you put this code in data-raw/. You don’t need it in the bundled version of your package, so also add it to .Rbuildignore. Do all this in one step with:

usethis::use_data_raw()