From ripley at stats.ox.ac.uk  Fri Aug 27 17:52:47 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri Aug 27 17:52:58 2004
Subject: [Rd] Packing of data files in packages
In-Reply-To: <412F55B7.4040306@acelerate.com>
Message-ID: <Pine.LNX.4.44.0408271649200.6790-100000@gannet.stats>

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 you mean Rcmd INSTALL here: build --binary is just a wrapper
                                          ^^^^^^^^
> gives a package which does'nt work. How should I do it, is it better ti
> zip each data file individually and use the functions to read from 
> zipped files, or are there some other solution?
> Did'nt find anything in "Writing R extensions".

Did you notice about .rda files?  Writing compressed .rda files is 
the best way to provide large datasets.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] Packing of data files in packages
Prof Brian Ripley