Deli Wang
2007-Jun-20 20:50 UTC
[R] How to create .rda file to be used in package building
Hi, Can someone tell me how to create .rda data files in R so that they can be used contributed package? Thanks Deli Wang [[alternative HTML version deleted]]
Prof Brian Ripley
2007-Jun-21 07:32 UTC
[R] How to create .rda file to be used in package building
On Wed, 20 Jun 2007, Deli Wang wrote:> Hi, > > Can someone tell me how to create .rda data files in R so that they can be > used contributed package?The manual says Currently, data files can have one of three types as indicated by their extension: plain R code (.R or .r), tables (.tab, .txt, or .csv), or save() images (.RData or .rda). (All ports of R use the same binary (XDR) format and can read compressed images. Use images saved with save(, compress = TRUE), the default, to save space.) What more information do you need? ?save may help you.> > Thanks > > Deli Wang > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Brian D. Ripley, ripley at 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
Robin Hankin
2007-Jun-21 08:13 UTC
[R] How to create .rda file to be used in package building
Deli the way I do it is to start with an R session with the data objects in memory. Then package.skeleton() creates a directory tree which is, well, a package skeleton, including the data which appears as .rda files in the data/ directory. HTH Robin On 20 Jun 2007, at 21:50, Deli Wang wrote:> Hi, > > Can someone tell me how to create .rda data files in R so that they > can be > used contributed package? > > Thanks > > Deli Wang > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.-- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743