[R] R extension in C
Thomas Lumley
tlumley at u.washington.edu
Fri Jul 20 18:43:48 CEST 2001
On Thu, 19 Jul 2001, Joe Conway wrote:
> Hello,
>
> I'm trying to modify the RPgSQL R extension, in part as a learning
> experience on how R is extended. Specifically I'm writing a new function
> which attempts to create a data.frame in C, and pass it back to R. The key
> word is "attempts" in this last sentence. I haven't been able to get it
> right, and I've not found many good examples or a comprehensive description
> of the requirements. The closest I've found is do_modelframe in model.c and
> the "Writing R Extensions" document. They were a good start, but didn't
> quite get me there. Can anyone point me toward some other
> examples/documents?
Some of the functions in the 'foreign' package create data frames entirely in C, eg read.dta()
-thomas
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list