This is Robin Jeffries's Typepad Profile.
Join Typepad and start following Robin Jeffries's activity
Robin Jeffries
Recent Activity
I'm sorry, I forgot to mention that the function that has the above mentioned code was wrapped inside a foreach().
Monitoring progress of a foreach parallel job
by Andrie de Vries R has strong support for parallel programming, both in base R and additional CRAN packages. For example, we have previously written about foreach and parallel programming in the articles Tutorial: Parallel programming with foreach and Intro to Parallel Random Number Generation...
It's a windows only solution, and it's basically the same task as StephenL described. I just added a "bar" argument to my overarching function so i could decide if I wanted to monitor the bars or not (yes for testing on my machine, no for submitting on a cluster)
if(bar==TRUE){
pb <- winProgressBar(title = "Initializing",
min = 0,max = L, width = 300)}
for (l in 1:L){
... stuff...
if(bar==TRUE){
setWinProgressBar(pb, l,
title=paste(mod, " Iteration:", round(l/L*100, 0),
"% done"))}
if(bar==TRUE){close(pb)}
Monitoring progress of a foreach parallel job
by Andrie de Vries R has strong support for parallel programming, both in base R and additional CRAN packages. For example, we have previously written about foreach and parallel programming in the articles Tutorial: Parallel programming with foreach and Intro to Parallel Random Number Generation...
Robin Jeffries is now following The Typepad Team
Feb 25, 2015
Subscribe to Robin Jeffries’s Recent Activity