Displaying 5 results from an estimated 5 matches for "tryeval".
Did you mean:
trueval
2007 Feb 21
3
non-interactive R_tryEval does not return
...at least I think that is what happens, at least on some
configurations. Here's a repeatable example:
cd R_HOME/tests/Embedding
touch tmp.R
make tryEval
and then (correct)
> ./tryEval --slave
Error in sqrt("") : Non-numeric argument to mathematical function
Caught an error calling sqrt(). Try again with a different argument.
[1] 3
versus (non-interactive; no return)
> ./tryEval --slave < tmp.R
Error in sqrt("") : No...
2009 Aug 25
2
Clarifications please.
...fused on how the lang 1 2 3 4 ... set of functions work. I
haven't found any relevant documentation explaining it clearly. I have a
vague idea but still I cannot understand how I would evaluate an R
expression like Covariance <- round(cov(100 * SWX.RET), digits = 4) using
lang, install and R_tryEval.
2) What exactly does install do?
3) I wrote the following code:
#include <Rinternals.h>
#include <Rembedded.h>
int main (int argc, char** argv) {
SEXP e,val;
int errorOccurred;
Rf_initEmbeddedR(argc, argv);
// library("fPortfolio")
PROTECT(e = lang2...
2009 Nov 14
1
R_tryEval for OCaml-R.
Hello.
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, or the relevant
part of the R source code?
All the best,
--
Guillaume Yziquel
http://yziquel.homelinux.org/
2004 Oct 08
2
R-2.0.0 findVar and findFun question
Dear all,
when working on a project with embedded R, I found out that R-2.0.0 causes
a problem where older versions worked OK.
Rf_findVar(...) causes the following error when used to find a generic function
(such as print):
fun = Rf_findVar(...);
R_tryEval(fun, ...);
Error in function (object, ...) : Invalid generic function in usemethod
Alternatively, using Rf_findFun(...) seems OK in this context, but crashes if you
call it with an unexisting function name. Rf_findVar does not crash in this case,
but returns an unbound value.
My workaround for...
2007 Apr 06
2
wishlist: additional argument in R_tryEval (Rinternals.h)
Hi,
R_tryEval, exported in Rinternals.h but not part of the API, is
currently defined as:
R_tryEval(SEXP e, SEXP env, int *ErrorOccurred);
I'm trying to embed R in an application (basically yet another GUI),
and this has been very helpful to catch errors. It would be even more
helpful if it also gave acces...