[R] getWinProgressBar does not return previous value

From: Michael DiPersio <mdipersio_at_prilink.com>
Date: Fri, 09 May 2008 14:52:56 -0400

I am trying to use winProgressBar, however I find that although setWinProgressBar updates the value on the screen, getWinProgressBar does not return this value.
> pb <- winProgressBar()
> setWinProgressBar(pb, 0.2)

> getWinProgressBar(pb)

[1] 0

I tried the same with tkProgressBar, and it is working as I would expect from the documentation.
> pb <- tkProgressBar()
> setTkProgressBar(pb, 0.5)
> getTkProgressBar(pb)

[1] 0.5
... and I get the same result using txtProgressBar .

Does anyone using winProgressBar find the same behaviour, or know the reason for it? A search for "winProgressBar" in R-help archive did not reveal anything, I believe it is a new function to v2.7.0.

> sessionInfo()

R version 2.7.0 (2008-04-22)

LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] tcltk stats graphics grDevices utils datasets methods [8] base



R-help_at_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. Received on Fri 09 May 2008 - 18:59:46 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 10 May 2008 - 07:30:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive