Skip to content

Commit ee0d4d0

Browse files
committed
adjust date before release
1 parent fb58d9b commit ee0d4d0

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: pbapply
22
Type: Package
33
Title: Adding Progress Bar to '*apply' Functions
44
Version: 1.3-4
5-
Date: 2017-08-07
5+
Date: 2018-01-09
66
Author: Peter Solymos [aut, cre], Zygmunt Zawadzki [aut]
77
Maintainer: Peter Solymos <[email protected]>
88
Description: A lightweight package that adds

NEWS.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
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).

man/pboptions.Rd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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
123126
fun1 <- 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)
161164
g <- function(x) pblapply(1:10, f)
162165
tmp <- lapply(1:10, g) # undesirable
163166
## here is the desirable solution

0 commit comments

Comments
 (0)