[R] R Wrappers for "scanf-like" c functions.

About this list Date view Thread view Subject view Author view Attachment view

From: Fernando Pineda (fernando.pineda@jhu.edu)
Date: Sun 30 May 2004 - 14:23:16 EST


Message-id: <a06020401bcdf0ecc06b1@[192.168.0.17]>

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
fernando.pineda@jhu.edu
443-287-3673 (office)
410-955-0105 (fax)
http://www.pinedalab.jhsph.edu

______________________________________________ R-help@stat.math.ethz.ch 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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:14 EST