[R-pkg-devel] Problem with test data folder. R package develpoment

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Sun Jun 14 14:44:37 CEST 2020

Use a different name than "data" such as "rawdata" within "inst" to put files that your code refers to using the system.name() function. The directory name "data" is used for a specific purpose as described in the Writing R Extensions manual [1], and if you want to put files in that directory following those special requirements then they must be in the top level "data" directory.

[1] https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Data-in-packages

On June 14, 2020 1:55:50 AM PDT, Subhadip Datta <subhadipdatta007 using gmail.com> wrote:
>I attached my test data in inst/data but why this warning is showing.
>"Found the following non-empty subdirectories of 'inst' also used by R:
>    inst/data
> It is recommended not to interfere with package subdirectories used by
>  R."
>This is not a problem from my side.  It used the data from that
>directory but showed an error for the folder.

Sent from my phone. Please excuse my brevity.

More information about the R-package-devel mailing list