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
0 answers

cmake's execute_process() does not return value for output variable in Qt Creator

I am trying to use RInside and Rcpp in a Qt app. For this, an example including a make file is available in the RInside package here. However, none of the execute_process() calls in the make file return a value for the output variable when compiling…
lhjohn
  • 123
  • 8
0
votes
1 answer

Linking error for RInside on Mac OS X 11.6 (Big Bur): pcre2-8 library not found

This is likely an error installing PCRE2 (which I did using "sudo port install pcre2"), but when I "make" sample code for RInside, I get: $ make rinside_sample0 clang++ -mmacosx-version-min=10.13 -std=gnu++11…
Mark Bower
  • 569
  • 2
  • 16
0
votes
0 answers

Getting dynamic variable in next for loop python

How can I get c variable value inside the for x in range? Code str1=1 str2=100 n=int(input('vvedite kolichestvo: '))#4 r=7 while str1
0
votes
1 answer

How to initialize "RInside" instance in a function NOT main function, and call it multiple times without getting "R is already initialized"?

I would like to use RInside in a function that is NOT the main function in my c++ program. After debugging, I found out that the function works for the first round and I get the output as expected but when it is called for the second time my program…
ahmdbi92
  • 13
  • 1
0
votes
0 answers

Error when run RInside example in eclipse

Greeting, I'm trying to run RInside examples in eclipse, but I have this error ./rinside_sample0.o: In function `main': D:\omnetpp-5.1\samples3\myRapp\Debug/../rinside_sample0.cpp:16: undefined reference to…
Alia
  • 71
  • 9
0
votes
1 answer

RInside call with arguments from R

I am trying to pass arguments to an exe file that includes RInside, and that is compiled using make. By taking this code inspired from here. #include int main(int argc, char *argv[]) { // define two vectors in C++ …
gaut
  • 5,771
  • 1
  • 14
  • 45
0
votes
0 answers

unable to open the base package when compiling RInside in QT

I 'm new in QT. I meet a problem in using RInside, hope to get some help. int main(int argc, char *argv[]) { RInside R(argc, argv); QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } when compling this,error…
0
votes
2 answers

Fatal error for

I am running this example, through terminal. But got fatal error: RInside.h: No such file or directory error for the the line, #include. Its a interface to R from c++. I have RInside package in R. my…
9113303
  • 852
  • 1
  • 16
  • 30
0
votes
1 answer

How can I get the linkers to work when I include the RInside header in a C++ program?

I am trying to compile the examples in the standard examples repository of the RInside package. I have already tried running the Makefile that was already in the repository, didn't work. Until now I've run into several errors, some of which have…
0
votes
1 answer

Building and using a shared library from source files that use another shared library. (RInside)

I am beginner with building c++ applications and RInside (A library that provides embedded R interpreter access from C++ program) and need some help. I want to keep all code using RInside separated in a class/module and provide just a function (take…
rajeswar
  • 77
  • 5
0
votes
1 answer

RInside InternalFunction on a class, how to call the function from R

I need to call R from C++ and I am using the excellent RInside / Rccp packages. I am not an R specialist, this might explain my question and sorry if it's too obvious. I made an object and a wrapper class, something similar to the Rinside…
francky
  • 51
  • 6
0
votes
1 answer

Integration of Rcpp in c++ with bcc compiler

I'm looking for a library in c++ which I compile with the Borland compiler bcc32. Before I tried to take the benefits of RInside but unfortunately it's only working with gcc-compiler and can't be used in my programming environment, which is…
Thomas
  • 11
0
votes
1 answer

Difference between RInside and Rcpp

I understand RInside allows C++ program to embed R code, while Rcpp enables R code to call C++ functions or library. Are there other differences and commonalities between RInside and Rcpp? Why RInside has a namespace called Rcpp? Do developers…
SimonInNYC
  • 400
  • 3
  • 15
0
votes
1 answer

Execution stuck while creating embedded R instance

I am using RInside to integrate R into a Qt application. Currently, I am trying to run the Qt example present in the RInside package. I am able to build the example but the execution gets stuck while creating an embedded R instance. #include…
Ayush
  • 741
  • 9
  • 19
0
votes
1 answer

HAVE_UINTPTR_T defined both in RInside.h and R.h

A warning of "HAVE_UINTPTR_T redefined" occured when my ubuntu updated some r-cran packages. Does this warning matters? Could somebody explain this macro? I also found it in some python header. In file included from…
ZFY
  • 135
  • 12