I recently downloaded this R package (http://cran.r-project.org/web/packages/energy/index.html) and was able to successfully install it and run it on my system and calculate distance correlation.
The problem is for loops in R takes forever and I am an R newbie. The source code is actually written in some files in C, which R uses to evaluate. I have these two files in src
folder in the package utilities.c
and dcov.c
Which has functions I need to implement.
I tried to compile dcov.c
which uses rmath.h
and r.h
apparently and I got a bunch of errors about Calloc/Free used in the program.
Any idea how I can just compile the C programs?