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
e...@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
e...@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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel