Displaying 1 result from an estimated 1 matches for "tstlib".
Did you mean:
tslib
2009 Nov 15
2
Segmentation faults on SEXP conversion
Hello -
I am making a first attempt at writing a simple C++ routine to print
out R objects (this is a simple proof-of-concept as part of a larger
package development). The relevant C++ routine is as follows:
void Rwrite(SEXP fd, SEXP msg) {
int *ofd = INTEGER(fd);
const char * omsg = CHAR(asChar(msg));
printf("[%i] %s",*ofd,omsg);
}
And the corresponding interface in R is as