[R] Returnin char back through the .Call interface

wolski wolski at molgen.mpg.de
Wed Feb 4 11:39:36 CET 2004


Hi!

My results or error messages are copied in a string and than have to be passed back through the .Call interface togheter with numeric results
What is the best way to allocate storage to a character? (R_alloc?)
And how to add it to a list? (e.g. allocVector(VECSXP, 9))


Help are highly appreciated.

Eryk



Ps.
I tried a with mkChar
and with
PROTECT(ral1 = NEW_CHARACTER(1));




More information about the R-help mailing list