Re: [Rd] Packing of data files in packages

2004-08-27 Thread Prof Brian Ripley
On Fri, 27 Aug 2004, Kjetil Brinchmann Halvorsen wrote: > Hola! > > I am writing a package with some large data files, so it would be good to > use the feature of zipping data. > > However, I use .R files to read in the data from one (sometimes more) > files, so Rcmd build --zip-data I think yo

Re: [Rd] Packing of data files in packages

2004-08-27 Thread Wolski
Hi Kjetil! I would pack the files, as you said, and use functions to read from zipped files. You can place the data file in the directory e.g inst/mydata. See (writing R extension to know more about the inst directory) After installing the package you can get the path to the mydata direcotry usin

[Rd] Packing of data files in packages

2004-08-27 Thread Kjetil Brinchmann Halvorsen
Hola! I am writing a package with some large data files, so it would be good to use the feature of zipping data. However, I use .R files to read in the data from one (sometimes more) files, so Rcmd build --zip-data gives a package which does'nt work. How should I do it, is it better ti zip each dat