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

RInside - Wrapping a C++ function for use in an R function

I am looking to employ the R library cmaes (Covariance Matrix Adaptation Evolutionary Strategy) in a C++ program using RInside. https://www.rdocumentation.org/packages/cmaes/versions/1.0-11/topics/cma_es There is a C++ implementation of the same…
Leigh K
  • 561
  • 6
  • 20
1
vote
0 answers

png() ... dev.off() don't work in RInside when I use ggplot2

This code works in R very well library(ggplot2); tbl <- data.frame( name = c ("AAA", "BBB"), qty = c(100, 150) ); p <- ggplot(data = tbl ) + geom_bar(stat='identity', aes(x =name, y = qty)); png(file='sample.png', bg ='transparent', width = 300,…
1
vote
1 answer

R instantiation when called from c++

I am using Rcpp and RInside, to interconnect my R based code to c++. I make multiple distinct calls to R from c++. I wanted to know if each call to R, creates a new instance of R ? The reason I want to know this is cos I want to optimize my c++…
Egon
  • 3,718
  • 3
  • 34
  • 48
1
vote
0 answers

C++ call R function defined in separate .R files

I would like my C++ code to call R functions, passing data between the two. The R functions are not trivial, currently defined in separate .R files. As far as I can tell, the examples provided with Rinside have all the R code "embedded" in the C++…
John
  • 451
  • 7
  • 17
1
vote
1 answer

RInside cannot find system Renviron with compiled R

my RInside program test_rinside runs well on server with R installed from ubuntu 14.04 sources. After switching to a server with R compiled manually, the RInside program reports fatal error: cannot find system Renviron Fatal error: unable to open…
ZFY
  • 135
  • 12
1
vote
1 answer

libRInside.so: cannot open shared object file: No such file or directory

I installed distributed R sucessfully in Redhat linux 6.5. I am getting " libRInside.so: cannot open shared object file: No such file or directory" exception while trying to launch distributed R library?
1
vote
1 answer

Rcpp & RInside link error

I am running R3.1 on Kubuntu 14.04 and using Codeblocks as an IDE for trying an RInside program from Dirk Eddelbuettels eg: http://dirk.eddelbuettel.com/blog/2011/03/25/#rinside_and_qt ` // Copyright (C) 2010 Dirk Eddelbuettel and Romain…
knban1
  • 31
  • 2
1
vote
1 answer

RInside crash when creating an R instance

I tried two examples and they give me the same problem. int main(int argc, char *argv[]) { qDebug() << "//------- before R instance"; RInside R(argc, argv); // create an embedded R instance qDebug() << "//------- after R…
ALF-100
  • 11
  • 4
1
vote
1 answer

Error with compiling RInside examples under Windows

I am currently trying to use RInside to do some plots in backtesting, inspired by Saving Lattice Plots with RInside and Rcpp. I came with problem by compiling RInside . And before digging into my question, I've already looked up the three previous…
Alvin
  • 351
  • 3
  • 13
1
vote
1 answer

compiling make -f makefile.win failed on windows 7

I am a Chinese scholar with a strong interest in calling R function via RInside. I followed general instructions to install R, RCPP, RInside, and Rtools under C:\R\R-3.3.0. My OS is Windows 7. When I using the Windows command prompt to run make -f…
1
vote
0 answers

How can I get the RInside example sandboxed_server to work on OS X Yosemite?

I'm having trouble getting the sandboxed_server example from RInside/examples/sandboxed_server working on xcode. I have OS X Yosemite 10.10.1. I get the following error: clang++ server/rinsideserver.o common/binarystream.o datatypes/bar.o…
Sam Owen
  • 11
  • 2
1
vote
0 answers

RInside Compilation Error (Possibly due to Shield in Rcpp)

Further investigation suggests (the problem with the call to #include at least) is due to some issues with Windows 8.1. I will confirm this when I get a chance on another OS. My issue is highlighted as basically the same problem the person in this…
AodhanOL
  • 630
  • 7
  • 26
1
vote
1 answer

Saving Lattice Plots with RInside and Rcpp

I am trying to build an R application in C++ using RInside. I wanted to save the plots as images in specified directory using codes, png(filename = "filename", width = 600, height = 400) xyplot(data ~ year | segment, data = dataset, layout = c(1,3),…
Manoj G
  • 1,776
  • 2
  • 24
  • 29
1
vote
1 answer

On Mac, Rcpp does not have lib folder

On Mac OS X 10.7.5, I installed Rcpp and RInside on R 3.0.2. If I go to RInside folder, I can see both lib and libs folder. However, in Rcpp folder, there is only libs folder that contains Rcpp.so and Rcpp.so.dSYM directory. Should Rcpp contain a…
Chris
  • 589
  • 4
  • 11
1
vote
1 answer

RInside Compilation: Make Targets

I am new to using make and I am trying to run the RInside example for Qt density demo given here: http://dirk.eddelbuettel.com/blog/2011/03/25/. I have saved the code into the following files: main.cpp Makefile qtdensity.cpp include/qtdensity.h I am…