Displaying 2 results from an estimated 2 matches for "emdl1".
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...
2011 Sep 19
1
Rscript path problem on R 2.13.1 for Ubuntu 11.04?
...application/x-gzip' length 15819 bytes (15 Kb)
opened URL
==================================================
downloaded 15 Kb
* 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_...