File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed
Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Package: pbapply
22Type: Package
33Title: Adding Progress Bar to '*apply' Functions
44Version: 1.3-4
5- Date: 2017-08-07
5+ Date: 2018-01-09
66Author: Peter Solymos [aut, cre], Zygmunt Zawadzki [aut]
77Maintainer: Peter Solymos <
[email protected] >
88Description: A lightweight package that adds
Original file line number Diff line number Diff line change 11# User-visible changes in the pbapply R package
22
3- ## Version 1.3-4, August 7, 2017
3+ ## Version 1.3-4, January 9, 2018
44
5- * New function ` pbtypes() ` to print available pb types
6- depending on OS.
5+ * New function ` pbtypes() ` to print available pb types depending on OS.
76* ` getTimeAsString ` is now exported, with description and examples.
87* New ` pboption ` ` use_lb ` to switch on load balancing for parallel clusters,
98 ` FALSE ` by default (feature request #28 ).
Original file line number Diff line number Diff line change @@ -119,12 +119,15 @@ Progress bars used in the functions:
119119\code {\link [tcltk ]{tkProgressBar }}
120120}
121121\examples {
122+ # # increase sluggishness to admire the progress bar longer
123+ sluggishness <- 0.01
124+
122125# # for loop
123126fun1 <- function () {
124127 pb <- startpb(0 , 10 )
125128 on.exit(closepb(pb ))
126129 for (i in 1 : 10 ) {
127- Sys.sleep(0.15 )
130+ Sys.sleep(sluggishness )
128131 setpb(pb , i )
129132 }
130133 invisible (NULL )
@@ -135,7 +138,7 @@ fun2 <- function() {
135138 on.exit(closepb(pb ))
136139 i <- 1
137140 while (i < 10 ) {
138- Sys.sleep(0.15 )
141+ Sys.sleep(sluggishness )
139142 setpb(pb , i )
140143 i <- i + 1
141144 }
@@ -157,7 +160,7 @@ fun1()
157160
158161# # dealing with nested progress bars
159162# # when only one the 1st one is needed
160- f <- function (x ) Sys.sleep(0.01 )
163+ f <- function (x ) Sys.sleep(sluggishness )
161164g <- function (x ) pblapply(1 : 10 , f )
162165tmp <- lapply(1 : 10 , g ) # undesirable
163166# # here is the desirable solution
You can’t perform that action at this time.
0 commit comments