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
23
votes
6 answers

Error in loadNamespace(name) : there is no package called 'Rcpp'

I am trying to embed RInside to my application on win7 64-bit system but when I initialize an RInside: Rin = new RInside(argc, argv); the following message appears: Error in loadNamespace(name) : there is no package called 'Rcpp' This error only…
chatzich
  • 1,083
  • 2
  • 11
  • 26
8
votes
3 answers

Problem with compiling RInside examples under Windows

I am trying to setup RInside at work where we are forced to use a Windows environment. I have installed RTools and downloaded an RInside binary from CRAN. My R installation resides in c:\R\R-2.12.2 so no problems with folders with spaces. I have…
Christian Bøhlke
  • 779
  • 1
  • 7
  • 18
7
votes
2 answers

Call R plots from c++ using RInside/ Rcpp

Is it possible to call the plot functions from the c++ ? Currently when I try to do that, the ubuntu terminal sort of freezes for sometime ( may be the duration for which the 3d plot would be created and then rotated for a full 360 degrees) and then…
Egon
  • 3,718
  • 3
  • 34
  • 48
5
votes
1 answer

cannot compile rinside with armadillo examples

I am trying to compile the Rarmadillo example with Rinside and I keep getting: In file included from rinside_arma0.cpp:8:0: /usr/local64/opt/R-2.15.2/lib/R/library/RcppArmadillo/include/RcppArmadillo.h:26:6: error: #error "The file 'Rcpp.h' should…
madreblu
  • 373
  • 5
  • 15
4
votes
0 answers

How to check if an R command is successfully executed when using RInside

I want to write a program to execute an R command using RInside and tell whether or not the result is a string. I created a RInside instance and used its method RInside::parseEval to parse the R command and then stored the result in a SEXP variable.…
AnhHao Trần
  • 145
  • 1
  • 10
4
votes
1 answer

Embedding Stan in C++ application

I wanted to know whether it is possible to incorporate Stan in another C++ application. Since Stan is also written in C++, there should be a way. Currently, I am using RInside to achieve this but then you have all this data transferring which is…
beginneR
  • 3,207
  • 5
  • 30
  • 52
4
votes
2 answers

Understanding passing armadillo matrices to R functions via RInside

I'm trying to use R within C++ via RInside. I'm having trouble passing armadillo matrices to R and returning a result. Below I am able to return a results from an R library function, however I get the wrong result. I'm using the skewness function…
pyCthon
  • 11,746
  • 20
  • 73
  • 135
4
votes
3 answers

using rinside with qt in windows

I am beginning using rinside and rcpp within c++. I just want to start from zero so my QT project has nothing but the creation of a RInside instance and I have a problem I cannot solve. I have only one dialog form in the project. My project file: QT…
3
votes
1 answer

Using Valgrind with RInside programs

Does anyone know how to use Valgrind to memory debug RInside programs?
ggg
  • 1,857
  • 2
  • 21
  • 33
3
votes
1 answer

Passing RInside's 'R' instance as a parameter between classes/methods

I have been using Rcpp and RInside, to integrate R and C++. We have a complex, yet well designed C++ architecture, and I am finding it difficult to access R from within just 1 function. Is it possible to pass the R instance to different Classes /…
Egon
  • 3,718
  • 3
  • 34
  • 48
3
votes
1 answer

Is it possible to use RInside in omnet++/Veins project to benefit from rich R features

I was learning R and came through this package called RInside which provides c++ classes to call an embedded R interpreter. I am able to run some examples given after configuring as per this blogpost and using provided makefile in Omnet++ eclipse…
rajeswar
  • 77
  • 5
3
votes
3 answers

Undefined reference error while linking to R and RInside libraries from C++ code using g++ compiler in UNIX

I want to embed R into a C++ program. So I installed R, Rcpp and RInside also. But I get a lot of "undefined reference to" errors while compiling with g++ in UNIX. The command I give for compiling is g++ -I/path/to/R/include…
Manoj
  • 31
  • 1
  • 2
3
votes
0 answers

RInside giving segmentation fault

I installed the Rcpp and RInside packages using install.packages. Then I downloaded the examples and compiled using make. The make failed initially due to some error in sample9. Once I removed sample9.cpp it all compiled. Now the issue is that I…
Naveen Sharma
  • 1,057
  • 12
  • 32
3
votes
3 answers

Error in loadNamespace(name) : there is no package called 'RInside'

Error in loadNamespace(name) : there is no package called 'Rcpp' ... Error in loadNamespace(name) : there is no package called 'RInside' I get the above error when trying make on the examples of RInside. RInside is in the user-library. So I…
user2296153
  • 612
  • 1
  • 7
  • 15
3
votes
2 answers

RInside and Rcpp in c++x11

I would like to use RInside in a c++x11 code to call R routine. By default, R seems to install a c++98 version of the library and thus the linking does not success. I wonder what are the different steps I should proceed to install c++x11 version of…
beuhbbb
  • 257
  • 3
  • 14
1
2 3 4 5 6 7 8