I stumbled onto a near trivial solution... here is some example code:
EBo --
#include Rembedded.h
#include Rdefines.h
#include Rinternals.h
#include R_ext/Parse.h
SEXP
LineEval (char *cmd)
{
SEXP ans;
int error;
ans = R_tryLineEval (cmd, R_GlobalEnv, error);
if (error
sentences in the
embedded documentation better explaining what R_ParseVector does would
havekept me from creating this thread and a couple of days of pain. As for
parseString, this is the first I have read of it, so will now check into it.
Thanks and best regards,
EBo
://biostat.mc.vanderbilt.edu/LittleR
Jeff,
Thank you for the pointer. Tis is exactly the kind of examples I had
originally asked for and had hoped to find.
EBo --
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
regards,
EBo --
ps: if someone can suggest how to hand code
t.test(x,conf.level=(1-p))$conf.int[2] so I can embedd it I would be most
appreciative.
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
surprise. This imples that an environment would also be passed in:
R_Expr=R_Parse1Line(t.test(x,conf.level=(1-p))$conf.int[2], rho, status);
Thanks and best regards,
EBo --
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo
Luke Tierney [EMAIL PROTECTED] said:
On Wed, 3 Sep 2008, EBo wrote:
Luke Tierney [EMAIL PROTECTED] said:
...
do something like the following:
R_Expr = R_Parse1Buffer(R_ConsoleIob, 0, status);
if (PARSE_OK==status) {
...
value = eval(R_CurrentExpr, rho
regards,
EBo --
__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel