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"),
> ScalarString(mkChar("utils"))), R_GlobalEnv));
>       *rPercentComplete = 10; //this value increments
>       eval(lang4(install("setTxtProgressBar"), pBar, percentComplete,
> R_NilValue), utilsPackage);
> }
> 
> Now I am wondering why the pBar doesn't show initially if the percent
> complete is 0%?
> 
> Thanks again,
> Erik
> 

I did a quick check on the R side of things and txtProgressBars do not
display until after the first call to setTxtProgressBar unless the initial
parameter is set to something other than 0 (possible bug?).  Try executing a
call immediately after creation to set the value to 0.

-Charlie

-----
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University
-- 
View this message in context: 
http://n4.nabble.com/Rprintf-not-updating-tp1751703p1752289.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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.

Reply via email to