Re: [R-pkg-devel] Scripts to generate data objects

2016-03-31 Thread Dirk Eddelbuettel
On 31 March 2016 at 14:14, Kirill Müller wrote: | The devtools::use_data_raw() function But the question was about the best way ;-) Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-package-devel@r-project.org mailing li

Re: [R-pkg-devel] Scripts to generate data objects

2016-03-31 Thread Kirill Müller
The devtools::use_data_raw() function creates a "data-raw" directory for this purpose, and adds it to .Rbuildignore so that it's not included in the built package. Your scripts can then write the data to the proper place using devtools::use_data(). -Kirill On 30.03.2016 14:03, Iago Mosqueir

Re: [R-pkg-devel] Scripts to generate data objects

2016-03-30 Thread Dirk Eddelbuettel
On 30 March 2016 at 14:03, Iago Mosqueira wrote: | What is the best way of keeping R scripts that are used to generate the data files in the data/ folder? These are not meant to be available to the user, but I would like to keep them in the package itself. Right now I am storing them inside dat

[R-pkg-devel] Scripts to generate data objects

2016-03-30 Thread Iago Mosqueira
Hello, What is the best way of keeping R scripts that are used to generate the data files in the data/ folder? These are not meant to be available to the user, but I would like to keep them in the package itself. Right now I am storing them inside data/, for example PKG/data/datasetone.R to cre