stdout = NA
to not intercept at allCode
future_map(1:2, fn, .options = opts)
Output
hello
hello
[[1]]
[1] 1
[[2]]
[1] 2
Code
future_map(1:2, fn, .options = opts)
Output
[[1]]
[1] 1
[[2]]
[1] 2
stdout
Code
(expect_error(furrr_options(stdout = "x")))
Output
<error/rlang_error>
Error in `validate_stdout()`:
! `stdout` must be `TRUE`, `FALSE`, or `NA`.
Code
(expect_error(furrr_options(stdout = c(TRUE, TRUE))))
Output
<error/vctrs_error_assert_size>
Error in `validate_stdout()`:
! `stdout` must have size 1, not size 2.
Code
future_map(1:5, fn, .options = opts)
Condition
Warning in `...furrr_fn()`:
hello
Warning in `...furrr_fn()`:
hello
Warning in `...furrr_fn()`:
hello
Warning in `...furrr_fn()`:
hello
Warning in `...furrr_fn()`:
hello
Output
[[1]]
[1] 1
[[2]]
[1] 2
[[3]]
[1] 3
[[4]]
[1] 4
[[5]]
[1] 5
Code
future_map(1:5, fn, .options = opts)
Output
[[1]]
[1] 1
[[2]]
[1] 2
[[3]]
[1] 3
[[4]]
[1] 4
[[5]]
[1] 5
conditions
Code
(expect_error(furrr_options(conditions = 1)))
Output
<error/rlang_error>
Error in `validate_conditions()`:
! `conditions` must be a character vector.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.