similar to: Saving Rcpp Objects for Future Use

Displaying 20 results from an estimated 3000 matches similar to: "Saving Rcpp Objects for Future Use"

2011 Aug 29
1
R-loadable dll with minGW-compiled linked library
I am trying to create a dynamic library (dll) for loading into R with dyn.load command. I am trying to use the library libdai (a machine learning C++ library) and boost (C++ libraries) in my main C++ program. While I am able to compile the main C++ file I am using successfully into a dll, there is a problem linking to libraries (libdai.a) and boost libraries. I only have instructions on how to
2011 Aug 17
4
Referencing 'inst' directory in installed package
Hi, My R package has files in the 'inst' directory that it needs to reference. How can the R scripts in my package find out the full path to the 'inst' directory after the package is installed, given that different users may have installed the package to different libraries? Thanks, Jon Malmaud
2011 Aug 31
1
not able to install R version 2.13.1
I am trying to install R version 2.13.1 on Ubuntu. I get the following error when I type the command sudo apt-get install r-base I have modified /etc/apt/sources.list as well as run the command "sudo apt-get update" prior to running this. Please help! Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This
2011 Sep 11
5
Link between Qt GUI and R
hi, i want to build a Qt front-end GUI which communicates with R, and i am not sure what i should use for the interface. There seems to be many ways: R.dll, Rinside, Rcpp, RQt, Rtools... . what is the best way? please advice. basically what i want to do is that, the Qt GUI will allow users to make selection and enter numbers, these inputs will be fed to R, already written .R files will perform
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do $sudo R CMD INSTALL <anRpackage.tar.gz> By default it is storing these packages into my directory /home/mary/R/x86_64-pc-linux-gnu-library/2.13/. However I want them to be systemwide into /usr/local/lib/R/site-library/ folder. I tried $sudo R R> install.packages("anRpackage", dep=TRUE) I did not succeed into getting
2011 Aug 19
3
installing packages systemwide
I installed some downloaded packages in R. I always do $sudo R CMD INSTALL <anRpackage.tar.gz> By default it is storing these packages into my directory /home/mary/R/x86_64-pc-linux-gnu-library/2.13/. However I want them to be systemwide into /usr/local/lib/R/site-library/ folder. I tried $sudo R R> install.packages("anRpackage", dep=TRUE) I did not succeed into getting
2011 Aug 09
2
build 32-bit R on x86_64?
Dear R-Devel, I'm using Ubuntu on an x86_64 machine and would like to have both the 32-bit and 64-bit versions of R built from source. By default, following the usual build procedures yields 64 bit R. Looking at [these](http://cran.r-project.org/doc/manuals/R-admin.html#Sub_002darchitectures), I thought I could build 32-bit R by executing r_arch=32 ./configure and building R like usual
2011 Aug 15
2
Problem installing rJava...
Morning All: Having problems installing this one into my R setup and wondered if anyone on the list had the same problem and found a workable solution. First to the system particulars: OS is the Hardy Heron edition of Ubuntu Linux R version is 2.13.1 Java installation is sun-java6 Next up is the result of javareconf: R CMD javareconf Java interpreter : /usr/bin/java Java version : 1.5.0
2011 Sep 09
4
Please explain your workflow from R code -> package -> R code -> package
Hi, I'm asking another one of those questions that would be obvious if I could watch your work while you do it. I'm having trouble understanding the workflow of code and package maintenance. Stage 1. Make some R functions in a folder. This is in a Subversion repo R/trunk/myproject Stage 2. Make a package: After the package.skeleton, and R check, I have a new folder with the project
2013 May 14
2
invalid operands of types ‘SEXPREC*’ and ‘R_len_t’ to binary ‘operator/’ with Rcpp.
Dear R-Developers, I just started learning how to use Rcpp. Earlier while using it, I encountered an error as shown below: file74d8254b96d4.cpp: In function ‘Rcpp::NumericVector foo(Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::Function, Rcpp::Function)’: file74d8254b96d4.cpp:10: error: invalid operands of types ‘SEXPREC*’ and ‘R_len_t’ to binary ‘operator/’ make: ***
2010 Dec 03
1
Error using Rcpp under windows xp
Hi, I am a newbie to Rcpp packages, and got problems in having basic set-ups for Rcpp under windows xp. Here is the list I have done. 1) installed Rtools and have no problem in compiling .c file. 2) installed Rcpp packages 3) set enviroment variables 'path' to make C:\Program Files\R\R-2.12.0\library\Rcpp\include\ searchable The sample C++ code I used is from the original website:
2017 Dec 03
2
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 05:23, Eric Berger <ericjberger at gmail.com> wrote: > > Do a search on "Rcpp calling C++ functions from R" > Thanks. However search for "Rcpp calling C++ functions from R" gives a lot of result but I think some of them are outdated and others don't agree with each other. Can you point to a specific good on-line guide for me? Regards
2010 Mar 25
1
Error using Rcpp
Hi, Im not sure if this is the right place to post this. I am using Xubuntu Karmic Koala and am trying to use the Rcpp package. I am testing it using a simple code that takes in a vector and adds 1 to each element: #include <Rcpp.h> // This file takes in a vector and adds one to each entry RcppExport SEXP addone(SEXP vec){ // create a local copy of vec Rcpp::NumericVector
2017 Dec 03
1
Rcpp, dyn.load and C++ problems
On 3 December 2017 at 20:19, Dirk Eddelbuettel <edd at debian.org> wrote: Hi Dirk, Thanks for your answers. I got a few more questions. > > 0) Wrong list. Rcpp has its down, rcpp-devel, and I basically do not read > this and would have missed this were it not for luck. OK. I did found the rcpp-devel mailing-list. But I though it was a developers of the rcpp-package. So it is ok
2014 Oct 30
2
Trouble installing Rcpp on AIX - missing "execinfo.h"
Greetings, When I try "install.packages('Rcpp')" it fails when compiling api.cpp (line 39). This is Rcpp 0.11.3. I searched my filesystem, and indeed I do not have execinfo.h anywhere. After some effort, I got R build on AIX. Now I am trying to build the packages I need. Rcpp is crucial. I first build R with the native IBM XL compilers, and Rcpp wouldn't build. That was
2011 Jun 02
2
Export a function from RCPP in R of type double
Hello to everyone I have written a small c++ function of type double function(double,double); and i want to export it in R using RCPP. After some trials i have realized that the only way i could do it working is to declare the function as void function (double x, double y, double result) and pass the result with RCPP Can you please tell me if this is the only way out? And if this is the case how
2017 Dec 03
0
Rcpp, dyn.load and C++ problems
I would go to the source, in this case Dirk Eddelbuettel's (I hope I spelled it correctly) documentation for Rcpp: http://dirk.eddelbuettel.com/code/rcpp/Rcpp-attributes.pdf Note that you need to do sourceCpp("logistic_map.cpp") in R instead of building and dyn.load()-ing the object. HTH, Peter On Sun, Dec 3, 2017 at 11:04 AM, Martin M?ller Skarbiniks Pedersen <traxplayer
2011 Aug 14
2
Problem installing R Commander plugin...
Hi ho folks: I'm running the indicated version of R on Hardy Heron Ubuntu. (Yes, I am quite aware that it is considered old news but then I don't run the "latest and greatest" computer gear. I've tried both Gnome and KDE editions of Ubuntu Lynx and even a current run of Fedora. I find Heron simply works better on my machine.) When I try to install RcmdrPlugin.PT most of
2012 Dec 05
1
RInside, rcpp compilation problem
I have spent some hours browsing the RInside and rcpp documentation, lots of it; but ... as a programmer of C++ since 1990, on both Windows and Unix ... ( Solaris and Ubuntu, and Mandrake/Mandrivo Linux); I see a minor problem ...... Where is the rcpp.h header file?? The below code fails to compile as the RInside.h header file references the rcpp.h header file, which is not included with
2011 Sep 13
1
Getting Rcpp SEXP data in C++
Friends I am looking at Rcpp and I am a bit stuck on a simple matter. (I am calling R from c++, if there is a better way...) Given this simple example using the TTR package and the SMA function which returns a simple moving average.... Rcpp::NumericVector rv; for(int i = 0; i < 100; i++){ rv.push_back(rand()); } Rcpp::Environment TTR("package:TTR");