I'm having difficulty trying to figure out how to write an R wrapper for a C function that has a "scanf-like" argument list. Recall that in C, functions like scanf() return their values through a variable number of arguments whose type and number is determined by a format string. In C this is handled by parsing the format string and then applying the types and functions declared in <stdarg.h>. I've been banging my head against the wall for a few days trying to figure out how I might do such a thing. Does anyone know how to write an R wrapper for functions like this?

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
[EMAIL PROTECTED]
443-287-3673 (office)
410-955-0105 (fax)
http://www.pinedalab.jhsph.edu

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to