[Rd] R_tryEval for OCaml-R.

Dirk Eddelbuettel edd at debian.org
Sat Nov 14 17:24:28 CET 2009


On 14 November 2009 at 16:45, Guillaume Yziquel wrote:
| I'm currently working on the OCaml-R binding allowing to call R code 
| from Objective Caml.
| 
| As Objective Caml is a functional language, I'd like the binding to be 
| as 'functional' as possible. Specifically, this means that I'd like 
| using the R_tryEval function and all related entry points in libR.so.
| 
| I've had a look at R-exts.pdf, but R_tryEval is not documented.
| 
| Could someone please point me to relevant documentation, 

I don't think it is documented as it is not part of the API -- see for
example R's src/main/context.c where you find

   R_tryEval is in Rinternals.h (so public), but not in the API.

That doesn't stop several projects from using it but we know it can break.

| or the relevant part of the R source code?

Besides the usual recursive grep 

   edd at ron:~$ grep -rinl R_tryEval /home/edd/src/debian/R/R-2.10.0/
   /home/edd/src/debian/R/R-2.10.0/ONEWS
   /home/edd/src/debian/R/R-2.10.0/src/library/methods/src/methods_list_dispatch.c
   /home/edd/src/debian/R/R-2.10.0/src/main/main.c
   /home/edd/src/debian/R/R-2.10.0/src/main/context.c
   /home/edd/src/debian/R/R-2.10.0/src/include/Rinternals.h
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/Rpackage.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/Rshutdown.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/embeddedRCall.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/RParseEval.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/RNamedCall.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/Rerror.c
   /home/edd/src/debian/R/R-2.10.0/tests/Embedding/tryEval.c
   edd at ron:~$

you can always try Google Code Search as in 

   http://www.google.com/codesearch?q=R_tryEval&hl=en&btnG=Search+Code

Hth, Dirk

-- 
Three out of two people have difficulties with fractions.



More information about the R-devel mailing list