Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Martin Morgan
On 10/24/2011 06:04 AM, Evarist Planet wrote: Dear mailing list, I have a C function that gives me a wrong result when I run it under Windows Hi Evarist -- It seems like this can be written reasonably efficiently in R? getEs <-function(fchr, sign) { nfchr <- length(fchr) nsign <- len

Re: [Rd] C function is wrong under Windows 7

2011-10-24 Thread Thomas Lumley
On Mon, Oct 24, 2011 at 6:04 AM, Evarist Planet wrote: > Dear mailing list, > > I have a C function that gives me a wrong result when I run it under Windows > 7. The fact that you extract pointers to the contents of fchr and sign before coercing them to REALSXP is deeply suspicious to me, though

[Rd] C function is wrong under Windows 7

2011-10-24 Thread Evarist Planet
Dear mailing list, I have a C function that gives me a wrong result when I run it under Windows 7. This is the code under Linux (RHEL5): > library(phenoTest) > data(epheno) > sign <- sample(featureNames(epheno))[1:20] > score <- getFc(epheno)[,1] > head(score) 1007_s_at 1053_at117_at121