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
0
votes
1 answer

Weird error mkdir "The syntax of the command is incorrect" error when installing Rcpp and RInside on windows 7, 64bit

I previously installed Rcpp successfully on Windows 7. Now I changed to a new PC and the following command fails mysteriously. I searched around and noticed that some other people's errors usually relate to spaces in directory names. So I installed…
doraemon
  • 403
  • 6
  • 15
0
votes
1 answer

embend a RInside c++ application under linux

I developed an application whose main graphical outputs relie on R through the very useful RInside. I would like to "deploy" my application under linux systems without having to systematically install R and the needed packages. For that purpose I…
beuhbbb
  • 257
  • 3
  • 14
0
votes
2 answers

difference between LOAD_RCPP_MODULE and Rcpp::InternalFunction

What is the difference between Rcpp::InternalFunction and LOAD_RCPP_MODULE in the context of using RInside? They seem to have the same purpose just LOAD_RCPP_MODULE has an extra layer. What are the use cases for both of them and when should i…
pyCthon
  • 11,746
  • 20
  • 73
  • 135
0
votes
1 answer

why can't convert SEXP to Rcpp::NumericMatrix?

I use R by rinside std::string cmd = "m <-matrix(c(1:9),nrow=3))"; SEXP proxy = m_R.parseEvalNT(cmd); Rcpp::NumericMatrix m(proxy); the runtime to terminate it in an unusual way anyone please help me thanks
cgfine
  • 15
  • 2
0
votes
1 answer

How to calling R code from C++

I try to include R-code in C++ (Qt creator). To get familiar with the packages Rcpp, RInside and the R-source code R-3.0.1 I try to run the following example: #include #include #include #include
user2590221
0
votes
1 answer

Using Rcpp and RInside in Windows 7 Without Specific IDEs

Most of the people who have asked about this topic so far seem to be either halfway through the process of installing these packages (whereas I barely know how to begin) or are using things like Eclipse + StatEt, which I'd like to avoid unless…
user2487965
0
votes
1 answer

RInside Callbacks

I try to set some callbacks of RInside but I realise that there is a definition of variable RINSIDE_CALLBACKS which prevents the compilation of function causing a linker error void RInside::set_callbacks(Callbacks* callbacks_) how can install…
chatzich
  • 1,083
  • 2
  • 11
  • 26
0
votes
1 answer

creating an RInside instance inside a thread

I am interested in writing a c++ program that is capable of running R scripts. For several design reasons I would like to create an instance of RInside, execute a script, grab the result, and destroy the instance; all within a thread. I know that R…
13Kash
  • 1
0
votes
1 answer

Rpp, Rinside support for R packages?

Does anyone have decent insight on certain R packages that can work with RInside out of box? I am looking for hopeful support with the R packages of: quantstrat, quantmod, PerformanceAnalytics, and TTR In other words, can I call R functions directly…
heavy rocker dude
  • 2,271
  • 8
  • 33
  • 47
0
votes
2 answers

Compiling RInside programs on Windows

Possible Duplicate: Problem with compiling RInside examples under Windows On Windows XP: > sessionInfo() R version 2.15.1 (2012-06-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2]…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
0
votes
2 answers

RInside segmentation fault and linking issue

I'm trying to call R from c++ on linux via RInside, I compiled R-2.15.1 from source with gcc version 4.5.3 (Debian 4.5.3-1) , I don't have sudo rights to use apt-get install. I'm using OpenBlas and a system optimized lapack. The blas and lapack…
pyCthon
  • 11,746
  • 20
  • 73
  • 135
0
votes
2 answers

RInside installation error

I am trying to make a R development environment in my computer. During last hour, I could successfully install RTools and RCpp. But when I tried the last element RInside package, I get following error. I can see the reason is because g++ or make…
Tae-Sung Shin
  • 20,215
  • 33
  • 138
  • 240
0
votes
2 answers

RInside linking on mac osx

Hi i'm trying to compile and run simple RInside examples on mac osx. I'm using R installed form macports and RInside installed via R as well with the latest release of all libraries heres my R information R version 2.15.1 (2012-06-22) -- "Roasted…
pyCthon
  • 11,746
  • 20
  • 73
  • 135
0
votes
1 answer

How to display coordinates on the static map PNG file as they are received from the GPS in R?

So, currently I have successfully compiled the program (with RInside) for plotting coordinates on the static maps of Google (on Qt). Now, I have to plot the coordinates on the map as they are received from the GPS. Is it possible somehow to display…
Aquarius_Girl
  • 21,790
  • 65
  • 230
  • 411
0
votes
1 answer

how to include dll library with makefile, when using rcpp/rinside package

I am using R with Rinside/Rcpp package. I was able to generate .exe/.o/.dll files (A) from come C++ code I wrote based on Rinside package. However, later I found I would like to use A.dll as library for my other function. But I cannot figure out a…
dave
  • 1