Prof Brian Ripley wrote:
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.

Sorry if I'm missing something, but it seems that although R_Serialize() is public, the support functions needed to use R_outpstream_t are not. So I'm back to my initial question -- is there an alternative public interface that I can use?

Thanks,

Joe

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to