rinside

Fatal error: Unable to open the base package [closed]

不想你离开。 提交于 2020-06-17 08:14:34
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . So, now I have managed to compile the hello program of RInside on WindowsXP (VirtualBox). But, when I click on its executable, I get a dialogbox showing

Compiling RInside programs on Windows [duplicate]

南楼画角 提交于 2020-01-11 13:02:08
问题 This question already has answers here : Closed 7 years ago . 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] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets

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

谁都会走 提交于 2020-01-06 23:48:17
问题 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 the newly plotted points on the png "on the fly"? I mean I don't wish to read the png from the harddisk every time I receive a new point. From here: http://cran.r-project.org/web/packages/png/png.pdf This package provides an easy and simple way

Getting RInside example to work with extra linker option -framework

做~自己de王妃 提交于 2020-01-05 03:55:10
问题 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 what these options actually do ? I could not find it on this list: http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html Here is the original code: #include <RInside.h> // for the embedded R via RInside int main(int argc, char *argv[]) { RInside R

Fatal error for <RInside.h>

两盒软妹~` 提交于 2019-12-31 06:28:07
问题 I am running this example, through terminal. But got fatal error: RInside.h: No such file or directory error for the the line, #include<RInside.h> . Its a interface to R from c++. I have RInside package in R. my code: #include<iostream> #include<RInside.h> using namespace std; int main(){ int a=12; cout<<a<<endl; return 0; } Same error occurred for #include<Rcpp.h> header. #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] NumericVector callFunction(NumericVector x, Function f) {

RInside with Qt, GTK+ or Tcl [closed]

主宰稳场 提交于 2019-12-25 03:26:28
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . My question is: Do you know what toolkit between Qt, Gtk+ or Tcl/tk is better to develop an app with RInside? I think I can do it with any of them, but I just find examples of RInside using Qt. Can I use, for example, Gtk or Tcl/tk also?, and... What do you think is the best

windows r inside rcpp eclipse

流过昼夜 提交于 2019-12-24 08:48:20
问题 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 a type C:/R/R-2.15.2/library/Rcpp/include/Rcpp/string.h:68:21: error: expected ')' before 'charsxp' C:/R/R-2.15.2/library/Rcpp/include/Rcpp/string.h:73:23: error: 'StringProxy' does not name a type C:/R/R-2.15.2/library/Rcpp/include/Rcpp/string.h

RInside example build using clang++ on OS X Mavericks cannot find STL standard library on linking

你。 提交于 2019-12-24 04:28:07
问题 I recently moved to C++11 and Xcode 5 with command line tools on OS X 10.9.1, installed boost 1.55 using Homebrew and changed the compiler from g++ to clang++ (as mentioned in this post: Error when with Xcode 5.0 and Rcpp). The compiler change fixed Rcpp when running in R. But I am having issues with compiling the RInside examples (which used to work just fine). I re-downloaded RInside and unzipped the tar, went to the examples/standard directory and did a make clean and make all . It looks

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

人走茶凉 提交于 2019-12-23 22:37:36
问题 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 IDE. How can we integrate this with say veins (veins already have auto generated makefiles in top directory and src directory)? Rinside needs GCC toolchain which i think is default in OMNeT++. From what I've learned so far, these are the options:

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

假如想象 提交于 2019-12-21 19:54:49
问题 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 / functions, to get a more OOP design ? If yes, are there any examples ? To elaborate the query, I want to say that something like this, void foo(RInside& R0, int& x0) { R0.assign(x0,"totalSum"); } void foo2(RInside& R0, int& y0) { R0.assign(y0,"temp"