[R] returning strings to R from C functions
Fernando Pineda
fernando.pineda at jhu.edu
Thu Jun 3 05:22:22 CEST 2004
I'm using .C() and .External() and have no problems sending integers,
reals or strings from R to C. Nor do I have problems sending integers
or reals back from C to R. But I'm pulling my hair out trying to set
a string value in a C function and then sending it back from C to to
R. I've searched the usual sources and tried various casts, macros
and allocation schemes, but I'm failing miserably. Could someone
please put me out of my misery and point me to a working example?
Thanks,
-- Fernando
--
Fernando Pineda
Associate Professor
Dept. of Molecular Microbiology & Immunology
Johns Hopkins Bloomberg School of Public Health
Room E5146
615 N. Wolfe St., Baltimore, MD 21205-2179
fernando.pineda at jhu.edu
443-287-3673 (office)
410-955-0105 (fax)
http://www.pinedalab.jhsph.edu
More information about the R-help
mailing list