Re: [R-pkg-devel] data function from utils package

2016-08-17 Thread Hana Sevcikova
Another option is to put an R file of the same name as your dataset into the "data" directory and specify how your data should be read. I use it whenever I need to overwrite other arguments from the default read.table. If you have e.g. mydata.csv, a file mydata.R would contain this line: myda

Re: [R-pkg-devel] data function from utils package

2016-08-17 Thread Mike Mehan
Hi Hana, That works! Thanks for the great suggestion. For some reason I got an error that it couldn't find the read.csv() function. Adding library(utils) to the script didn't fix it. Including the namespace in the call did though. mydata <- utils::read.csv("mydata.csv") Thanks, Mike On Wed, Aug