Skip to content

Commit 924bc6e

Browse files
committed
Fix #1519
1 parent 13e6f38 commit 924bc6e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Description: Pipeline tools coordinate the pieces of computationally
1212
The methodology in this package
1313
borrows from GNU 'Make' (2015, ISBN:978-9881443519)
1414
and 'drake' (2018, <doi:10.21105/joss.00550>).
15-
Version: 1.11.3.9004
15+
Version: 1.11.3.9005
1616
License: MIT + file LICENSE
1717
URL: https://docs.ropensci.org/targets/, https://github.com/ropensci/targets
1818
BugReports: https://github.com/ropensci/targets/issues

NEWS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
# targets 1.11.3.9004 (development)
1+
# targets 1.11.3.9005 (development)
22

33
* Tone down progress bar output for medium-overhead scenarios.
44
* Speed up `tar_meta()` default settings for `tar_read()` etc. (for million-target pipelines).
55
* Choose the `"terse"` reporter by default if the calling session is non-interactive. This will hopefully avoid problems on CRAN for packages that use `targets` with the default settings.
66
* Improve reporter deprecation messages (#1493, @dakvid).
77
* Clarify scope of `tar_renv()` (#1506, @valentingar).
8+
* Handle errors in `rstudioapi::isAvailable()` (#1519, @dipterix).
89

910
# targets 1.11.3
1011

R/utils_rstudio.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ rstudio_available <- function(verbose = TRUE) {
3737
if (!package_installed("rstudioapi")) {
3838
available <- FALSE
3939
reason <- "package {rstudioapi} is not installed."
40-
} else if (!rstudioapi::isAvailable(child_ok = TRUE)) {
40+
} else if (
41+
tryCatch(
42+
!rstudioapi::isAvailable(child_ok = TRUE),
43+
error = function(condition) FALSE
44+
)
45+
) {
4146
available <- FALSE
4247
reason <- "RStudio API / Posit Workbench is not running."
4348
} else if (!available && verbose) {

0 commit comments

Comments
 (0)