search for: parseeval

Displaying 12 results from an estimated 12 matches for "parseeval".

2012 Mar 01
1
mb_m buffer not cleared if parseEval fails
Hi, I am using RInside for one of the applications that I'm using. The error that occured is as follows. When I use R.parseEval("xyz") if the parse fails then the mb_m is not cleared and hence all subsequent calls to R.parseEval fail. example: when R.parseEval("stringConcatfactoryrandom") is executed the R instance looks like this (gdb) p R $7 = (RInside &) @0x7fff13d42d10: {mb_m = {buffer = &...
2010 Sep 28
1
How to convert SEXP to double
...(via Rcpp package). The result come, as SEXP and it should be a simple numeric variable. How to convert it to double? The code, what i use: stringstream ss; ss << "p <- predict(fit_ar11, n.ahead = 2, doplot=FALSE);" << "p$pred[1]"; SEXP ans; int iRet = R.parseEval(ss.str().c_str()); if (iRet == 0 && ans != NULL) { // ??? } Cheers, Dima [[alternative HTML version deleted]]
2017 May 09
3
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
...and "leaps", and I suspect it used in "lattice" as well. This idiom has not done good things for quite a while (ever?) but I noticed while running tests that it acts differently in R-3.4.0 than in R-3.3.3. Neither the old or new behavior is nice. E.g., in R-3.3.3 we get > parseEval <- function(text, envir) eval(parse(text=text), envir=envir) > parseEval('lattice::xyplot(mpg~hp, data=datasets::mtcars)$call', envir=new.env()) xyplot(expr, envir, enclos) and > evalInEnvir <- function(call, envir) eval(call, envir=envir) > evalInEnvir(quote(lattice::xyplo...
2017 May 11
1
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
..." as well. > > > > This idiom has not done good things for quite a while (ever?) but I > noticed > > while running tests that it acts differently in R-3.4.0 than in R-3.3.3. > > Neither the old or new behavior is nice. E.g., in R-3.3.3 we get > > > >> parseEval <- function(text, envir) eval(parse(text=text), envir=envir) > >> parseEval('lattice::xyplot(mpg~hp, data=datasets::mtcars)$call', > > envir=new.env()) > > xyplot(expr, envir, enclos) > > > > and > > > >> evalInEnvir <- function(call, en...
2017 May 11
0
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
...spect it > used in "lattice" as well. > > This idiom has not done good things for quite a while (ever?) but I noticed > while running tests that it acts differently in R-3.4.0 than in R-3.3.3. > Neither the old or new behavior is nice. E.g., in R-3.3.3 we get > >> parseEval <- function(text, envir) eval(parse(text=text), envir=envir) >> parseEval('lattice::xyplot(mpg~hp, data=datasets::mtcars)$call', > envir=new.env()) > xyplot(expr, envir, enclos) > > and > >> evalInEnvir <- function(call, envir) eval(call, envir=envir) >&g...
2011 Mar 06
1
Plot and curve inside C++
Dear All, I would like to use - plot, - curve inside a C++ program. What R package do you recommend? Rcpp? Thanks in advance, Paul
2009 Sep 29
3
How do I access class slots from C?
Hi I'm trying to implement something similar to the following R snippet using C. I seem to have hit the wall on accessing class slots using C. library(fPortfolio) lppData <- 100 * LPP2005.RET[, 1:6] ewSpec <- portfolioSpec() nAssets <- ncol(lppData) setWeights(ewSpec) <- rep(1/nAssets, times = nAssets) ewPortfolio <- feasiblePortfolio( data = lppData, spec = ewSpec,
2005 Mar 04
1
R-2.01 and RSPerl-0.6.2
...referenced symbol not found Loaded RSPerl library objects $.PerlReference [.PerlArrayReference [.PerlHashReference [<-.PerlArrayReference [<-.PerlHashReference addConverter foreignReference getNumPerlConverters getPerlConverterDescriptions getPerlHandler getPerlScript names.PerlHashReference parseEval perlInitArgs referenceHandlerGenerator removeConverter setPerlHandler Testing search path installing function name search 1db114 Search path: .GlobalEnv package:RSPerl package:methods package:graphics package:grDevices package:utils package:datasets Autoloads package:base Error in dyn.load(x, as...
2011 Jan 26
2
Dealing with R list objects in C/C++
Hi, I'd like to construct an R list object in C++, fill it with relevant data, and pass it to an R function which will return a different list object back. I have browsed through all the R manuals, and examples under tests/Embedding, but can't figure out the correct way. Below is my code snippet: #include <Rinternals.h> // Rf_initEmbeddedR and other setups already performed
2008 May 24
1
RSPerl & OS X
...html latex example getPerlClasses text html latex example getPerlDynModules text html latex example getPerlScript text html latex example mkRef text html latex example parseEval text html latex example perlInitArgs text html latex example perlModuleLoaded text html latex example referenceHandlerGenerator text html latex example setPerlHandler tex...
2011 Jun 27
0
Errors when installing RSPerl-0.92
...l foreignReference html getNumPerlConverters html getPerlClasses html getPerlDynModules html getPerlScript html mkRef html parseEval html perlInitArgs html perlModuleLoaded html referenceHandlerGenerator html setPerlHandler html ** building package indices ... ** testing if installed package can...
2007 Mar 22
0
Fwd: RSPerl buffer overflow
...?html ? ?latex ? example ? getNumPerlConverters ? ? ? ? ? ? ?text ? ?html ? ?latex ? example ? getPerlClasses ? ? ? ? ? ? ? ? ? ?text ? ?html ? ?latex ? example ? getPerlScript ? ? ? ? ? ? ? ? ? ? text ? ?html ? ?latex ? example ? mkRef ? ? ? ? ? ? ? ? ? ? ? ? ? ? text ? ?html ? ?latex ? example ? parseEval ? ? ? ? ? ? ? ? ? ? ? ? text ? ?html ? ?latex ? example ? perlInitArgs ? ? ? ? ? ? ? ? ? ? ?text ? ?html ? ?latex ? example ? perlModuleLoaded ? ? ? ? ? ? ? ? ?text ? ?html ? ?latex ? example ? referenceHandlerGenerator ? ? ? ? text ? ?html ? ?latex ? example ? setPerlHandler ? ? ? ? ? ? ? ? ? ?tex...