On 8 August 2010 at 16:37, baptiste auguie wrote:
| Dear list,
|
| There's one feature that I miss after porting a for loop from R to C++
| : the possibility to add a progress bar. I used to write,
|
| library(plyr)
| l_ply(seq(1,10), function(ii) Sys.sleep(0.2), .progress = "text")
|
| My naiv
Oops, please ignore my previous request, I found an answer on
StackOverflow. I'm now using this routine,
int progress_bar(double x, double N)
{
// how wide you want the progress meter to be
int totaldotz=40;
double fraction = x / N;
// part of the progressmeter that's already "full