Re: [Rd] getConnection, R_outpstream_st

2009-11-08 Thread Romain Francois
Hello, Maybe I should give more background about what we are trying to do with this. We (Dirk, Saptarshi and I) are interfacing R with the protocol buffer C++ library from google [1,2] . protocol buffers are google's data interchange format, designed to be efficient (much more efficient than XML

[Rd] getConnection, R_outpstream_st

2009-11-07 Thread Romain Francois
Hello, I'm trying to use the limited connections api defined in Rinternals.h. I have code that looks like this (inspired from do_serializeToConn) : SEXP serialize_to_connection( SEXP xp, SEXP connection ){ Rconnection con ; struct R_outpstream_st out; R_pstream_format_t type = R_pstream_bin