Monthly Archives: March 2012

Calling Apophenia library from R

I struggled to get the code (markov.c) on p.129 of the book “Modeling with Data” to work. It turns out that the code needs to be modified to the following (the author of the book tells me that the current … Continue reading

Posted in R, Uncategorized | Leave a comment

Linking R to GSL

I put the following in r_gsl_test.c Then ran PKG_LIBS=”-lgsl” R CMD SHLIB r_gsl_test.c at the command line (obviously, I need to have GSL installed). Then tested using the following R code: No huge speed advantage evident here, though it is … Continue reading

Posted in R | Leave a comment