(v1.2.0.9038) CLSI 2019 fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-07-29 10:33:47 +02:00
1 parent 1b65d76cfb
commit 453f7f210b
65 files changed
+211 -514

No files matched your search

+7 -7
View File
@@ -419,13 +419,7 @@ font_stripstyle <- function(x) {
}
progress_estimated <- function(n = 1, n_min = 0, ...) {
if (n >= n_min & interactive()) {
pb <- utils::txtProgressBar(max = n, style = 3)
pb$tick <- function() {
pb$up(pb$getVal() + 1)
}
pb
} else {
if (!interactive() || n < n_min) {
pb <- list()
pb$tick <- function() {
invisible()
@@ -434,6 +428,12 @@ progress_estimated <- function(n = 1, n_min = 0, ...) {
invisible()
}
structure(pb, class = "txtProgressBar")
} else if (n >= n_min) {
pb <- utils::txtProgressBar(max = n, style = 3)
pb$tick <- function() {
pb$up(pb$getVal() + 1)
}
pb
}
}