Displaying 2 results from an estimated 2 matches for "xport_read".
2002 May 02
1
Returning a dataframe from a C function (How) ?
I'm writing an R extension. The language I'm using is ANSI C. One of the
functions I'm writing will accept a string and return a dataset as a
dataframe. i.e the prototype will be of the form:
dataframe foo(R_String)
{
}
Does anyone have any skeleton code for such a function, i.e. one that
receives an R "string" and returns a dataset as a dataframe ?
The main concerns I
2001 Dec 03
0
Segfault in foreign:read.xport (PR#1192)
I get a segfault when trying to read a SAS transport file with rather long
rows using read.xport from package foreign (version 0.4-7). The culprit
seems to be these lines in xport_read in SASxport.c:
590 } else {
591 c = strchr(tmpchar, ' ');
592 *c = '\0';
593 SET_STRING_ELT(VECTOR_ELT(data, k), j,
594 (c == tmpch...