-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
data locations #44
Comments
The files in inst/exdata are used by the vignette. In data-raw I put the files/data and the script I used to create the package internal data. My understandings that any other data which is not used for internal data and it is not RData should be placed in inst/extdata (http://r-pkgs.had.co.nz/data.html#data-extdata) I found: "Data for tests: it’s ok to put small files directly in your test directory. But remember unit tests are for testing correctness, not performance, so keep the size small." It seems that we do a correct use of the three folders: extdata, data-raw and test. As long as it causes no trouble we could keep as it is now, I think. |
inst/exdata and test is OK then (I would definitely keep data for tests in test) data-raw - so this is the raw data that was used to create inst/exdata? Then this should be included in the buildignore, see http://r-pkgs.had.co.nz/data.html |
data-raw is used to create the internal package data (sysdata.rda) and the folder contains the script to generate sysdata.rda and all files required by the script. |
Actually data-raw is already included in Rbuildignore https://github.com/biometry/rLPJGUESS/blob/master/rLPJGUESS/.Rbuildignore |
we have to talk about the locations for the test data
I put the LPJ folder structure from Maurizio in tests. But there is also data-raw and inst/extdata
I would put data that is only used for the tests in the test folder, but not sure ...
The text was updated successfully, but these errors were encountered: