Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread EBo
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

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread EBo
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

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-04 Thread 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

[Rd] suggestion of new API function for embedded programming.

2008-09-03 Thread EBo
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

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-03 Thread EBo
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

Re: [Rd] suggestion of new API function for embedded programming.

2008-09-03 Thread EBo
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

[Rd] embedded examples

2008-08-26 Thread EBo
regards, EBo -- __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel