Re: [Rd] R_tryEval for OCaml-R.

From: Romain Francois <romain.francois_at_dbmail.com>
Date: Sat, 14 Nov 2009 19:03:05 +0100

You can also see it in action in jri (in the Rengine.c file). http://www.rforge.net/JRI/

Romain

On 11/14/2009 05:24 PM, Dirk Eddelbuettel wrote:
>
>
> 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
>

-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/EAD5 : LondonR slides
|- http://tr.im/BcPw : celebrating R commit #50000
`- http://tr.im/ztCu : RGG #158:161: examples of package IDPmisc

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

This archive was generated by hypermail 2.2.0 : Sat 14 Nov 2009 - 23:00:30 GMT