search for: emdl1_r

Displaying 2 results from an estimated 2 matches for "emdl1_r".

2008 Nov 19
1
C++ code from R
Hi I managed to compile (and use) C code from R, but now I have to use C++ code. After reading "Writing R extensions", I came up with the following code, which compiles fine ------------------- // emdL1_R.cc: #include <time.h> #include <stdio.h> #include "emdL1.h" extern "C" { void emd_L1( double *H1, int *n1, double *H2, int *n2, int *Dims, double *e ) { EmdL1 em; // EMD_L1 class e[0] = em.EmdDist( H1,H2, n1[0],n2[0...
2011 Sep 19
1
Rscript path problem on R 2.13.1 for Ubuntu 11.04?
...installing *source* package ?earthmovdist? ... ** libs g++ -I/usr/share/R/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -O3 -pipe -g -c emdL1.cpp -o emdL1.o g++ -I/usr/share/R/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -O3 -pipe -g -c emdL1_R.cpp -o emdL1_R.o Rscript execution error: No such file or directory Rscript execution error: No such file or directory g++ -shared -o earthmovdist.so emdL1.o emdL1_R.o -L/usr/lib64/R/lib -lR installing to /usr/local/lib/R/site-library/earthmovdist/libs ** R ** inst ** preparing package for lazy loa...