search for: parseevalq

Displaying 4 results from an estimated 4 matches for "parseevalq".

Did you mean: parseeval
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
2013 Sep 27
1
LENGTH function causing name conflict
...tempting to bring R-3.0.2 functionality into a project with a very large C++ codebase. The existing codebase already has a LENGTH function defined. R also defines a LENGTH function. I first compiled R as a shared library and linked it into this existing codebase, along with RInside. When I run a parseEvalQ with a linear model command it will stack dump. Looking at the backtrace, what is happening is that line 51 of lm.c is executing: if(n) ny = LENGTH(y)/n; /* n x ny, or a vector */ However, the LENGTH call is getting routed into our internal codebase. This causes a stack dump. I then tried com...
2011 Oct 08
0
Fatal Error: unable to load base package
...de #include <RInside.h> // for the embedded R via RInside int main(int argc, char *argv[]) { RInside R(argc, argv); // create an embedded R instance R["txt"] = "Hello, world!\n"; // assign a char* (string) to 'txt' R.parseEvalQ("cat(txt)"); // eval the init string, ignoring any returns exit(0); } This is the compilation command g++ -Ic:/Progra~1/R/R-2.13.1/include -Ic:/Progra~1/R/R-2.13.1/library/Rcpp/include -Ic:/Progra~1/R/R-2.13.1/library/RInside/include -O3 -pipe -g -s em00.cpp -Lc:/Progra~1/R...
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,