|
1 |
| -#' Add a progress bar compatible with shinyWidgets::progressBar. |
| 1 | +#' Add a progress bar compatible with `shinyWidgets::updateProgressBar()`. |
2 | 2 | #'
|
3 |
| -#' Add a progress bar to request just like the vanilla httr::progress but with capability to talk to shinyWidgets::progressBar by giving the session and id arguments to it. |
| 3 | +#' Add a progress bar to request just like the vanilla `httr::progress()` but with capability to talk to `shinyWidgets::updateProgressBar()` by giving the session and id arguments to it. |
4 | 4 | #'
|
5 |
| -#' @param session (from shinyWidgets::updateProgressBar doc) The 'session' object passed to function given to shinyServer. |
6 |
| -#' @param id (from shinyWidgets::updateProgressBar doc) An id used to update the progress bar. |
7 |
| -#' @param type (from httr::progress doc) Type of progress to display: either number of bytes uploaded or downloaded. |
8 |
| -#' @param con (from httr::progress doc) Connection to send output too. Usually \code{stdout()} or \code{stderr}. |
9 |
| -#' @param title (from shinyWidgets::updateProgressBar doc) character, optional title. |
10 |
| -#' @param status (from shinyWidgets::updateProgressBar doc) Color, must be a valid Bootstrap status : primary, info, success, warning, danger. |
11 |
| -#' @param range_value (from shinyWidgets::updateProgressBar doc) Default is to display percentage ([0, 100]), but you can specify a custom range, e.g. -50, 50. |
12 |
| -#' @param unit_mark (from shinyWidgets::updateProgressBar doc) Unit for value displayed on the progress bar, default to "\%". |
| 5 | +#' @param session (from `shinyWidgets::updateProgressBar()`` doc) The 'session' object passed to function given to shinyServer. |
| 6 | +#' @param id (from `shinyWidgets::updateProgressBar()` doc) An id used to update the progress bar. |
| 7 | +#' @param type (from `httr::progress()`` doc) Type of progress to display: either number of bytes uploaded or downloaded. |
| 8 | +#' @param con (from `httr::progress()` doc) Connection to send output too. Usually \code{stdout()} or \code{stderr}. |
| 9 | +#' @param title (from `shinyWidgets::updateProgressBar()` doc) character, optional title. |
| 10 | +#' @param status (from `shinyWidgets::updateProgressBar()` doc) Color, must be a valid Bootstrap status : primary, info, success, warning, danger. |
| 11 | +#' @param range_value (from `shinyWidgets::updateProgressBar()` doc) Default is to display percentage ([0, 100]), but you can specify a custom range, e.g. -50, 50. |
| 12 | +#' @param unit_mark (from `shinyWidgets::updateProgressBar()` doc) Unit for value displayed on the progress bar, default to "\%". |
13 | 13 | #'
|
14 | 14 | #' @export
|
15 | 15 | #'
|
@@ -92,21 +92,21 @@ progress <- function (
|
92 | 92 |
|
93 | 93 | #' progress_bar
|
94 | 94 | #'
|
95 |
| -#' same as httr:::progress_bar but with capability to talk to shinyWidgets::progressBar. |
| 95 | +#' Same as `httr:::progress_bar()` but with capability to talk to `shinyWidgets::progressBar()`. |
96 | 96 | #'
|
97 |
| -#' @param type (from httr::progress doc) Type of progress to display: either number of bytes uploaded or downloaded. |
98 |
| -#' @param con (from httr::progress doc) Connection to send output too. Usually \code{stdout()} or \code{stderr}. |
99 |
| -#' @param session (from shinyWidgets::updateProgressBar doc) The 'session' object passed to function given to shinyServer. |
100 |
| -#' @param id (from shinyWidgets::updateProgressBar doc) An id used to update the progress bar. |
101 |
| -#' @param title (from shinyWidgets::updateProgressBar doc) character, optional title. |
102 |
| -#' @param status (from shinyWidgets::updateProgressBar doc) Color, must be a valid Bootstrap status : primary, info, success, warning, danger. |
103 |
| -#' @param range_value (from shinyWidgets::updateProgressBar doc) Default is to display percentage ([0, 100]), but you can specify a custom range, e.g. -50, 50. |
104 |
| -#' @param unit_mark (from shinyWidgets::updateProgressBar doc) Unit for value displayed on the progress bar, default to "\%". |
| 97 | +#' @param type (from `httr::progress()` doc) Type of progress to display: either number of bytes uploaded or downloaded. |
| 98 | +#' @param con (from `httr::progress()` doc) Connection to send output too. Usually \code{stdout()} or \code{stderr}. |
| 99 | +#' @param session (from `shinyWidgets::updateProgressBar()` doc) The 'session' object passed to function given to shinyServer. |
| 100 | +#' @param id (from `shinyWidgets::updateProgressBar()` doc) An id used to update the progress bar. |
| 101 | +#' @param title (from `shinyWidgets::updateProgressBar()` doc) character, optional title. |
| 102 | +#' @param status (from `shinyWidgets::updateProgressBar()` doc) Color, must be a valid Bootstrap status : primary, info, success, warning, danger. |
| 103 | +#' @param range_value (from `shinyWidgets::updateProgressBar()` doc) Default is to display percentage ([0, 100]), but you can specify a custom range, e.g. -50, 50. |
| 104 | +#' @param unit_mark (from `shinyWidgets::updateProgressBar()` doc) Unit for value displayed on the progress bar, default to "\%". |
105 | 105 | #'
|
106 | 106 | #'
|
107 | 107 | #' @return a function with rules to print out the progress.
|
108 | 108 | #'
|
109 |
| -#' @seealso \code{\link{progress}} |
| 109 | +#' @seealso \code{\link{progress}}, \code{\link[shinyWidgets]{progressBar}} |
110 | 110 | #'
|
111 | 111 | progress_bar <- function (
|
112 | 112 | type,
|
|
0 commit comments