Skip to content

Commit 69e2a61

Browse files
Renamed withProgress2() to withProgressShiny()
1 parent 94ab142 commit 69e2a61

File tree

5 files changed

+16
-12
lines changed

5 files changed

+16
-12
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export(slow_sum)
2323
export(tkprogressbar_handler)
2424
export(txtprogressbar_handler)
2525
export(winprogressbar_handler)
26-
export(withProgress2)
26+
export(withProgressShiny)
2727
export(with_progress)
2828
export(without_progress)
2929
importFrom(digest,digest)

NEWS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
Package: progressr
22
==================
33

4-
Version: 0.1.5-9000 [2019-11-02]
4+
Version: 0.1.5-9000 [2020-01-04]
5+
6+
SIGNIFICANT CHANGES:
7+
8+
* Renamed withProgress2() to withProgressShiny().
59

610
NEW FEATURES:
711

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#'
77
#' @return The value of `[shiny::withProgress]`.
88
#'
9-
#' @example incl/shiny-withProgress.R
9+
#' @example incl/withProgressShiny.R
1010
#'
1111
#' @export
12-
withProgress2 <- function(expr, ..., env = parent.frame(), quoted = FALSE, handlers = c(shiny = shiny_handler, progressr::handlers(default = NULL))) {
12+
withProgressShiny <- function(expr, ..., env = parent.frame(), quoted = FALSE, handlers = c(shiny = shiny_handler, progressr::handlers(default = NULL))) {
1313
if (!quoted) expr <- substitute(expr)
1414
expr <- bquote(progressr::with_progress({.(expr)}, handlers = .(handlers)))
1515
res <- withVisible(shiny::withProgress(expr, ..., env = env, quoted = TRUE))
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ app <- shinyApp(
99
server = function(input, output) {
1010
output$plot <- renderPlot({
1111
X <- 1:15
12-
withProgress2(message = "Calculation in progress",
13-
detail = "This may take a while ...", value = 0, {
12+
withProgressShiny(message = "Calculation in progress",
13+
detail = "This may take a while ...", value = 0, {
1414
p <- progressor(along = X)
1515
y <- lapply(X, FUN=function(x) {
1616
p()
Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)