Rcpp provides seamless integration of C++ code in R.
0
votes
0answers
3 views
hanging simulation with RcppArmadillo
I use RcppArmadillo to re-write a function which can be called in R. It works fine when I call it once, and it is faster than the original R code. However, when I use this function to do some ...
1
vote
1answer
29 views
RCPP error: undefined symbol: _ZTIN4Rcpp7RObjectE on package install
Using the default hello world program through Rcpp.package.skeleton I 'sometimes' get this error on install.
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object ...
0
votes
1answer
39 views
Using Rcpp and RInside in Windows 7 Without Specific IDEs [closed]
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 ...
0
votes
2answers
46 views
Rcpp: segfault on arrays > 698152 if IntegerVector is declared
I am running into what is probably a memory issue with c++ code interfaced with Rcpp. I could come up with the following minimal test case:
test.R:
require(Rcpp)
sourceCpp("test.cpp")
N <- ...
1
vote
3answers
188 views
Rcpp+Eclipse on Mac OS X
I am trying to get started using Rccp and decided to use Eclipse as a development environment since I already use StatEt for R. I am having trouble getting even a simple program to compile and run ...
0
votes
4answers
152 views
Rcpp equivalent for rowsum [closed]
I am looking for a fast alternative for the R function rowsum in C++ / Rcpp / Eigen or Armadillo.
The purpose is to get the sum of elements in a vector a according to a grouping vector b. For ...
3
votes
2answers
80 views
Speeding up computation of Dice coefficient in C / Rcpp
I need to compute a similarity measure call the Dice coefficient over large matrices (600,000 x 500) of binary vectors in R. For speed I use C / Rcpp. The function runs great but as I am not a ...
55
votes
4answers
3k views
Where can I learn to how to write C code to speed up slow R functions?
What's the best resource for learning how to write C code for use with R? I know about the system and foreign language interfaces section of R extensions, but I find it pretty hard going. What are ...
0
votes
0answers
50 views
Getting Rcpp to run under Windows 8 [closed]
After having so much fun with Rcpp on a number of Windows 7 and OSX machines, I tried to get it to run under Windows 8. Using R 2.15.2 and 3.0.1 and having installed Rtools 3.0, I get the following ...
0
votes
1answer
24 views
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 ...
1
vote
1answer
38 views
Error handling in Rcpp
How can I check, if a value is numeric and finite? Let's say I generate random numbers with Rf_rgamma or with my own routine. Depending on the parameters, errors could be generated. How can I check ...
0
votes
1answer
33 views
How to define a Rcpp package based on several different cpp files?
I have define several .cpp files.
One of them needs the package RcppArmadillo;
The others need the package Rcpp.
After my Rcpp package is generated and when i install it, I compile several errors as ...
-1
votes
0answers
61 views
How to find top N minimum value of vector and it's index efficiently,especially high dimension occure
I want to run some R script using the Rcpp package and I use sourceCpp function in Rcpp package to Compiling the following Code. when I first call sorttopNC function ,it's ok. but repeated many ...
1
vote
2answers
717 views
Lemon Graph Library on R using Rcpp
I think that this answer is a bit complex because it involves several things.
I want to do high performance computations with R particularly with graphs (networks). As a R package igraph is very ...
0
votes
1answer
40 views
Rcpp Error: incompatible types (from %s to %s)
I have recently begun using the Rcpp package to write some segments of my R code into C++.
Given a matrix of data, I have the following Rcpp function which calculates a kernel reweighted estimate of ...