Re: [R] Rprintf not updating

2014-05-20 Thread blosloos
Hi Could not make this example work, maybe because its missing *rPercentComplete pointing at percentComplete. The above mentioned link has been moved? to: https://gist.github.com/KRD1/2503984 however, this worked for me: *R side:* /pBar <- txtProgressBar( min = 0, max = 100, style = 3) blub<-.C

Re: [R] Rprintf not updating

2010-04-05 Thread Sharpie
Erik Wright wrote: > > Hi Charlie, > > Thanks, I got it working by looking at your myRunIfConcise function. > > SEXP changePercent(SEXP pBar) > { > int *rPercentComplete; > SEXP utilsPackage, percentComplete; > PROTECT(utilsPackage = eval(lang2(install("getNamespace"), > Scal

Re: [R] Rprintf not updating

2010-04-05 Thread Erik Wright
Hi Charlie, Thanks, I got it working by looking at your myRunIfConcise function. SEXP changePercent(SEXP pBar) { int *rPercentComplete; SEXP utilsPackage, percentComplete; PROTECT(utilsPackage = eval(lang2(install("getNamespace"), ScalarString(mkChar("utils"))), R_GlobalE

Re: [R] Rprintf not updating

2010-04-05 Thread Sharpie
Erik Wright wrote: > > Hi Charlie, > > I like your idea of updating an R progress bar from C, but I don't at all > understand how to call txtProgressBar from C. I have looked at Writing R > Extensions and it is equally confusing. Any help would be appreciated. > > Thanks!, > Erik > Hi Erik

Re: [R] Rprintf not updating

2010-04-05 Thread Erik Wright
Hi Charlie, I like your idea of updating an R progress bar from C, but I don't at all understand how to call txtProgressBar from C. I have looked at Writing R Extensions and it is equally confusing. Any help would be appreciated. Thanks!, Erik On Apr 5, 2010, at 10:29 AM, Sharpie wrote: >

Re: [R] Rprintf not updating

2010-04-05 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Erik Wright > Sent: Monday, April 05, 2010 7:59 AM > To: r-help@r-project.org > Subject: [R] Rprintf not updating > > Hello all, > > I am using

Re: [R] Rprintf not updating

2010-04-05 Thread Sharpie
Erik Wright wrote: > > Hello all, > > I am using Rprintf in a C for loop (from .Call) to print a progress > indicator showing the current percent complete. The loop I am doing is an > time intensive call to another function. I have noticed that Rprintf does > not print to the R-window until th

[R] Rprintf not updating

2010-04-05 Thread Erik Wright
Hello all, I am using Rprintf in a C for loop (from .Call) to print a progress indicator showing the current percent complete. The loop I am doing is an time intensive call to another function. I have noticed that Rprintf does not print to the R-window until the entire loop has been completed.