Questions tagged [rinside]

RInside is an R package providing C++ classes that simplify the embedding of R in C++ code.

Description

The RInside package provides C++ classes that make it easier to embed R code within C++ code -- on either Linux, OS X or Windows.

Additional Resources

  1. The official CRAN documentation
  2. Package info provided by RDocumentation
  3. A guide explaining the package's usage, written by its creators, can be found here.
109 questions
1
vote
0 answers

R with C++ (QtCreator, Windows, Rcpp, RInside)

I have a problem when it comes to using R within the C++ code. I'd like to create UI in c++ and do all needed calculations in R. So i've found stuff like Rcpp and RInside and even though i've read a lot from Dirk Eddelbuettel's site, i'm not able to…
jogproof
  • 43
  • 8
1
vote
2 answers

Getting RInside example to work with extra linker option -framework

I got the RInside example to run and work but I had to manually add the linker option: "-F/Library/Frameworks/R.framework/.. -framework R" at the end for g++ (on Mac Snow Leopard 10.6.8 with Xcode 3.x). It works, but I don't know why. Can anyone say…
crogg01
  • 2,446
  • 15
  • 35
1
vote
1 answer

Cannot pass RInside as a reference

So, I've been trying to use RInside for an application, but I can not figure out this issue. I've read this question, and I think I'm doing the exact same thing: Passing RInside's 'R' instance as a parameter between classes/methods But somehow it is…
1
vote
0 answers

windows r inside rcpp eclipse

I'm trying to use Rinside in an IDE, Eclipse. Follow step by step manual http://blog.fellstat.com/?p=170 However, when you Build All I mark the following errors C:/R/R-2.15.2/library/Rcpp/include/Rcpp/string.h:55:17: error: 'internal' does not name…
1
vote
1 answer

How to create a TCP Server using RInside?

Does anyone has an experience in creating a TCP server in C++ for calling R functions and serving the results to the clients? I implemented my own using POCO C++ libraries, but got an error message which led me to see the fact that RInside can not…
The_Cute_Hedgehog
  • 1,280
  • 13
  • 22
1
vote
1 answer

RCpp/RInside C++ main method queries and limitations?

A couple question about RInside I could not find on the RCpp mailing list. Can you define the RInside() outside out the C++ main() method? Are there any examples of that? Or can I only have one R embedded session in each C++ application? IS there a…
heavy rocker dude
  • 2,271
  • 8
  • 33
  • 47
1
vote
1 answer

C++ with a math library like GSL, LAPACK, or CBLAS performance vs C++ with Rinside with an R function?

Has anyone ever done a straight up apple to apple comparison between: A C++ application calling an algorithm done in a R functions using RInside A C++ application calling the equivelant algorithm but using a one of the math libraries like GSL,…
heavy rocker dude
  • 2,271
  • 8
  • 33
  • 47
1
vote
1 answer

Map displayed on R's widget doesn't get maximized when run through Qt

When I load a map on R's widget (through ggmap) and run the program directly though R's console, the map gets properly maximized when I maximize the R's window. The same doesn't happen when I run R through Qt. I am using RInside. Through Qt when I…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
1
vote
1 answer

compiling an OpenMPI app with the Intel compiler suite

I have the latest OpenMPI on linux which I compiled with the Intel compiler suite. I am trying to compile an OpenMPI application. My particular application uses RInside and RcppEigen. If I comment out the openMPI parts of my code, the compile string…
stevejb
  • 2,414
  • 5
  • 26
  • 41
1
vote
1 answer

Multiple definition error building RInside samples on Windows 7 x64

I'm trying to build rinside_sample1.cpp from RInside\examples\standard directory on Windows 7 x64 using g++ from RTools in the following way: set RCPP=%R_HOME%\library\Rcpp set RINSIDE=%R_HOME%\library\RInside g++ -c -m64 rinside_sample1.cpp -I…
1
vote
2 answers

Compiling RInside program with g++ on Linux

I have installed R through RPM (with Yast). anisha@linux-y3pi:~> locate RInside.so /usr/lib64/R/library/RInside/lib/libRInside.so /usr/lib64/R/library/RInside/libs/RInside.so anisha@linux-y3pi:~> locate…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
0
votes
1 answer

Problems with assigning large vectors

i have the following program. #include #include #include #include #include #include #include using std::cout; using std::endl; using std::vector; using namespace Rcpp; int…
ggg
  • 1,857
  • 2
  • 21
  • 33
0
votes
0 answers

Running RInside example produces Fatal error: unable to initialize the JIT. Why?

After installing the RInside package from within R I tried to compile and run the examples provided. Changing directory to $R_HOME/library\RInside\examples\standard the command make -f Makefile.win rinside_sample0 nicely produced the executable…
Egus
  • 121
  • 7
0
votes
0 answers

Find out if SEXP is a linked to variable in R

I am using RInside library to run embed R inside C++ application. After parsing R command such as: std::string command = "a <- 5" const SEXP res = mRSession->parseEval( command); I would like to know if the res is SEXP that is an R variable (the…
Jan Caha
  • 101
  • 2
0
votes
0 answers

Implementing R function inside Qt creator

I have this function to connect R with MYSQL and return the connection as global variable to be used in other functions later on. The parameters should be taken from the user. I would like to call this function from Qt creator using RInside and Rcpp…
majed
  • 33
  • 4