Re: [Rd] R_tryEval for OCaml-R.

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Sat, 14 Nov 2009 10:24:28 -0600

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.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Sat 14 Nov 2009 - 16:27:55 GMT

This archive was generated by hypermail 2.2.0 : Sun 15 Nov 2009 - 08:50:24 GMT