diff --git a/DESCRIPTION b/DESCRIPTION index 680b3cadd..c3346d5dc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -22,7 +22,6 @@ Depends: R (>= 3.1) Imports: brio, - callr (>= 3.5.1), cli (>= 3.1.1), crayon (>= 1.3.4), desc, @@ -35,19 +34,20 @@ Imports: methods, pkgload, praise, - processx, - ps (>= 1.3.4), R6 (>= 2.2.0), - rlang (>= 1.0.1), + rlang (>= 1.0.2), utils, waldo (>= 0.3.1), withr (>= 2.4.3) Suggests: + callr (>= 3.5.1), covr, curl (>= 0.9.5), diffviewer (>= 0.1.0), knitr, mockery, + processx, + ps (>= 1.3.4), rmarkdown, rstudioapi, shiny, diff --git a/R/parallel-taskq.R b/R/parallel-taskq.R index 32be38be2..9631951cf 100644 --- a/R/parallel-taskq.R +++ b/R/parallel-taskq.R @@ -22,6 +22,7 @@ task_q <- R6::R6Class( "task_q", public = list( initialize = function(concurrency = 4L, ...) { + rlang::check_installed(c("callr", "processx", "ps")) private$start_workers(concurrency, ...) invisible(self) }, diff --git a/tests/testthat/test-parallel-crash.R b/tests/testthat/test-parallel-crash.R index 0201f1cfd..bbc395077 100644 --- a/tests/testthat/test-parallel-crash.R +++ b/tests/testthat/test-parallel-crash.R @@ -1,9 +1,8 @@ test_that("crash", { - # https://github.com/r-lib/rlang/commit/c84d52b6 - skip_if_not_installed("rlang", "1.0.1.9000") - skip_on_cran() skip_on_covr() + skip_if_not_installed("callr") + withr::local_envvar(TESTTHAT_PARALLEL = "TRUE") do <- function() {