Calling function with proto in Rinternals.h
Duncan Temple Lang
Sat, 9 Nov 2002 10:45:35 -0500
Peter Dalgaard BSA wrote:
> email@example.com writes:
> > > However, you can't find those with is.loaded either. I'm getting rusty
> > > on the linker issues, but I don't think you can expect to call just
> > > any function in the C level interface using .Call. (Perhaps we need
> > > another section in "Writing R Extensions"? -- I couldn't find a clear
> > > indication of what, if any, functions are getting exported to .C and
> > > friends from the main binary and by which mechanism.)
> > It's file src/appl/ROUTINES which is used to generate the appropriate
> > headers: see src/appl/README. Under Unix this is done in src/unix.
> > I don't think it should be in R-exts.texi, as only R-core can extend R
> > this way (and those who do so know how to do so ...).
> (...but tend to forget over time.)
> Not as an extension mechanism, agreed, but it could be there in the
> form of a reference for the entry points that are available to R code.
I mentioned in Boston that we will probably move these to the explicit
registration mechanism for C/Fortran routines so that there is a
single mechanism for both core and package code. One of the
side-effects of this is that we will get run-time reflectance; so from
within R one will be able to ask for the available exported routines
and any information supplied for them such as the number of arguments,
I'll hopefully get to this sometime soon and when I can determine that
it doesn't break anything on the different platforms.
> O__ ---- Peter Dalgaard Blegdamsvej 3
> c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> ~~~~~~~~~~ - (firstname.lastname@example.org) FAX: (+45) 35327907
> r-devel 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: email@example.com
Duncan Temple Lang firstname.lastname@example.org
Bell Labs, Lucent Technologies office: (908)582-3217
700 Mountain Avenue, Room 2C-259 fax: (908)582-3340
Murray Hill, NJ 07974-2070
r-devel 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: email@example.com