Re: [R] Using multicores in R

2012-12-04 Thread moriah
Thanks for the help, Perhaps I should elaborate a bit, I am working on bioinformatics project in which I am trying to run a forward selection algorithm for machine learning classification of two biological conditions. At each iteration I want to find the gene that in addition to those I have fo

Re: [R] Using multicores in R

2012-12-03 Thread Jim Porzak
Moriah, Since you are doing nested loops, Rcpp may be an easy speed-up. Follow all the links here http://blog.revolutionanalytics.com/2012/11/hadleys-guide-to-high-performance-r-with-rcpp.html for details. HTH, Jim Porzak Minted.com San Francisco, CA www.linkedin.com/in/jimporzak use R! Group SF:

Re: [R] Using multicores in R

2012-12-03 Thread Spencer Graves
1. Have you looked at CRAN Task View: High-Performance and Parallel Computing with R (http://cran.r-project.org/web/views/HighPerformanceComputing.html)? 2. Have you tried the "compiler" package? If I understand correctly, R is a two-stage interpreter, first translating what we

Re: [R] Using multicores in R

2012-12-03 Thread Steve Lianoglou
And also: On Monday, December 3, 2012, Uwe Ligges wrote: > > > On 03.12.2012 11:14, moriah wrote: > >> Hi, >> >> I have an R script which is time consuming because it has two nested loops >> in it of at least 5000 iterations each, I have tried to use the multicore >> package but id doesn't seem t

Re: [R] Using multicores in R

2012-12-03 Thread Uwe Ligges
On 03.12.2012 11:14, moriah wrote: Hi, I have an R script which is time consuming because it has two nested loops in it of at least 5000 iterations each, I have tried to use the multicore package but id doesn't seem to improve the elapsed time of the script(a shorter script for example) and I

[R] Using multicores in R

2012-12-03 Thread moriah
Hi, I have an R script which is time consuming because it has two nested loops in it of at least 5000 iterations each, I have tried to use the multicore package but id doesn't seem to improve the elapsed time of the script(a shorter script for example) and I can't use the mcapply because of techni