[R] CPU usage on Windows (R 2.7.1)

From: Borja Soto Varela <borja.soto_at_gmail.com>
Date: Wed, 05 Nov 2008 18:26:09 +0100


Dear R-users,

I'm using R (2.7.1) under windows and I've got a function written in R that calls a Fortran 77 subroutine using both interface function (.C and .Fortran). The Fortran 77 source was compiled to a shared library using g77 (3.4.5).
When I call the R wrapper function, it will use the 100% of my CPU during 25 minutes (the fortran algorithm require a lot of time of execution) . The same thing if you try the next code:

> vec=rexp(20000000)
> fitdistr(vec,"exponential")

that also use the 100% of my cpu during 30 seconds. In both cases, it makes R crash when running another program but If I don't do anything, it runs fine.
Is there any solution to this?. It runs better using Linux?.

Thanks
Borja

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Nov 2008 - 17:31:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Nov 2008 - 18:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive