[Rd] external equiv to R_serialize()?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Mar 31 07:59:15 CEST 2009
On Mon, 30 Mar 2009, Joe Conway wrote:
> I'm trying to efficiently allow conversion of R objects to PostgreSQL bytea
> (raw binary) datatype within PL/R for persistent storage in Postgres tables.
> I have found R_serialize() which looks like what I need, -- e.g.
> R_serialize(object, NULL, FALSE, NULL) -- except that it is marked
> attribute_hidden. Is there some other externally available interface that I
> can use?
R_Serialize is in Rinternals.h. R_serialize is a wrapper using
connections, and connections do not have a public API.
Do note the comments in ?serialize: 'persistent' storage of objects in
an experimental format is somewhat contradictory.
--
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
More information about the R-devel
mailing list