Hi!!!
I have a problem...
I have C functions that I wan execute from R. I'm using WindowsXP. I've
compiled with gcc and then execute RCMD SHLIB qnorm.c.
In this moment I've got qnorm.dll.
In R console execute>dyn.load("c:\\r\\rw2011\\src\\gnuwin32\\qnorm.dll")
and message error don't appears.
Then I execute this code:
>normalize.quantiles <- function(x){
rows <- dim(x)[1]
cols <- dim(x)[2]
matrix(.C("qnorm_c",as.double(as.vector(x)),as.integer(rows),as.integer
(cols))[[1]],rows,cols)
}
>x<-matrix(rnorm(50),ncol=2)
>y<-normalize.quantiles(x)
Error in .C("qnorm_c", as.double(as.vector(x)), as.integer(rows),
as.integer(cols))
:
"C" function name not in load table
The header of function is:
void qnorm_c(double *data, int *rows, int *cols)
I've got tools.zip (unix tools for windows), the lastest verion of Perl and
the gcc compiler.
Where is the error???
Thanks!!!
P.D.:Sorry for my english :P
[[alternative HTML version deleted]]