You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DESCRIPTION
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
Package: progressr
2
-
Version: 0.17.0-9000
2
+
Version: 0.17.0-9001
3
3
Title: An Inclusive, Unifying API for Progress Updates
4
4
Description: A minimal, unifying API for scripts and packages to report progress updates from anywhere including when using parallel processing. The package is designed such that the developer can to focus on what progress should be reported on without having to worry about how to present it. The end user has full control of how, where, and when to render these progress updates, e.g. in the terminal using utils::txtProgressBar(), cli::cli_progress_bar(), in a graphical user interface using utils::winProgressBar(), tcltk::tkProgressBar() or shiny::withProgress(), via the speakers using beepr::beep(), or on a file system via the size of a file. Anyone can add additional, customized, progression handlers. The 'progressr' package uses R's condition framework for signaling progress updated. Because of this, progress can be reported from almost anywhere in R, e.g. from classical for and while loops, from map-reduce API:s like the lapply() family of functions, 'purrr', 'plyr', and 'foreach'. It will also work with parallel processing via the 'future' framework, e.g. future.apply::future_lapply(), furrr::future_map(), and 'foreach' with 'doFuture'. The package is compatible with Shiny applications.
Copy file name to clipboardExpand all lines: vignettes/progressr-91-appendix.md
+65-11Lines changed: 65 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,9 +157,44 @@ risk it would never finish and block all of the following progressors.
157
157
158
158
## Known Issues
159
159
160
-
### Positron
160
+
### RStudio bug #16331: Setting global progressr handlers during startup does not work
161
161
162
-
#### Setting global progressr handlers during startup does not work
162
+
Setting the global progressr handler in `~/.Rprofile` does _not_ work
163
+
in RStudio 2025.09:
164
+
165
+
```r
166
+
if (requireNamespace("progressr", quietly=TRUE)) {
167
+
progressr::handlers(global=TRUE)
168
+
}
169
+
```
170
+
171
+
This is due to a [bug introduced in RStudio
172
+
2025.09](https://github.com/rstudio/rstudio/issues/16331), which has
173
+
been fixed for the next release RStudio 2025.11. If you are using
174
+
RStudio 2025.09, the workaround is to instead use:
175
+
176
+
```r
177
+
if (requireNamespace("progressr", quietly=TRUE)) {
178
+
progressr::handlers(global=TRUE)
179
+
180
+
## Workaround for RStudio 2025.09 console bug #16331
181
+
if (nzchar(Sys.getenv("RSTUDIO")) &&!nzchar(Sys.getenv("RSTUDIO_TERM"))) {
182
+
invisible(addTaskCallback(function(...) {
183
+
ver<- RStudio.Version()$version
184
+
if (ver>="2025.09"&&ver<"2025.11") {
185
+
message("Workaround for RStudio 2025.09 bug #16331: Added progressr global handler")
186
+
progressr::handlers(global=TRUE)
187
+
} else {
188
+
warning("Workaround for RStudio 2025.09 bug #16331: Not needed in RStudio v", ver, ". Please remove task callback 'rstudio::progressr::once' in your Rprofile startup file", call.=FALSE, immediate.=TRUE)
189
+
}
190
+
removeTaskCallback("rstudio::progressr::once")
191
+
}, name="rstudio::progressr::once"))
192
+
}
193
+
}
194
+
```
195
+
196
+
197
+
### Positron bug #6892: Setting global progressr handlers during startup does not work
163
198
164
199
Positron does not support setting global calling handlers during R's
165
200
startup process, e.g. in `~/.Rprofile`. Even if such handlers are
@@ -176,23 +211,44 @@ if (requireNamespace("progressr", quietly = TRUE)) {
176
211
```
177
212
178
213
will have no effect. If used, the workaround is to manually
179
-
re-registering all calling handlers _at the R prompt_, which can be
180
-
done as:
214
+
re-registering all calling handlers, which can be done as:
0 commit comments