Re: [Rd] Convert multiple C strings into an R character vector

2007-08-10 Thread Jonathan Zhou
Hey, I'm actually passing the R objects between hosts through a middleware software called Symphony. I'm not sure if R_Serialize/Unserialize will be of use to me. On that note, after searching through the R manuals and using "RSiteSearch", I wasn't able to find any documentation regarding R_Ser

Re: [Rd] Convert multiple C strings into an R character vector

2007-08-10 Thread Jonathan Zhou
Thanks Seth I got the code to work. I've actually got a followup question. The strings were created from reading a file where an R object was placed in using "dput", meaning the strings hold R objects in character string format. My original intention for doing this was so that the character

[Rd] Convert multiple C strings into an R character vector

2007-08-10 Thread Jonathan Zhou
I was hoping someone could tell me how to convert multiple C character strings into an R character vector. Thanks, Jon -- View this message in context: http://www.nabble.com/Convert-multiple-C-strings-into-an-R-character-vector-tf4249882.html#a12095059 Sent from the R devel mailing list arch

Re: [Rd] Manipulating R objects in C++

2007-08-10 Thread Jonathan Zhou
Nevermind about the boolean object, after thinking about it for 2 seconds, I figured it out. Just going to translate the boolean to an integer object with 1 representing true and 0=false and send that to C :P. -- View this message in context: http://www.nabble.com/Manipulating-R-objects-in-C%

Re: [Rd] Using R_MakeExternalPtr

2007-07-25 Thread Jonathan Zhou
Hi Hin-Tak, Here is the R code function in where I called the two C++ and further below are the 2 C++ functions I used to create the externalptr and use it : soam.Rapply <- function (x, func, ..., join.method=cbind, njobs,

Re: [Rd] Using R_MakeExternalPtr

2007-07-25 Thread Jonathan Zhou
Hi all, Here is the R code function in where I called the two C++ and further below are the 2 C++ functions I used to create the externalptr and use it : soam.Rapply <- function (x, func, ..., join.method=cbind, njobs,

[Rd] Using R_MakeExternalPtr

2007-07-25 Thread Jonathan Zhou
Hi all, I've been writing a package and I've run into a problem that I'm unsure how to solve. I am looking to pass a C++ class object to R so that it may be passed back to another C++ function later on to be used. I'm quite new to R and this is my first time writing a package, so I hope you ca