Skip to content

Commit 3b3e004

Browse files
authored
Remove future_options() entirely. Closes #225. (#293)
1 parent 13a2e35 commit 3b3e004

File tree

7 files changed

+6
-92
lines changed

7 files changed

+6
-92
lines changed

DESCRIPTION

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Depends:
2020
R (>= 4.1.0)
2121
Imports:
2222
globals (>= 0.18.0),
23-
lifecycle (>= 1.0.5),
2423
purrr (>= 1.2.1),
2524
rlang (>= 1.1.7),
2625
vctrs (>= 0.7.0)

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export(future_map_raw)
5656
export(future_modify)
5757
export(future_modify_at)
5858
export(future_modify_if)
59-
export(future_options)
6059
export(future_pmap)
6160
export(future_pmap_chr)
6261
export(future_pmap_dbl)

NEWS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# furrr (development version)
22

3+
## Breaking changes
4+
5+
* `future_options()` has been removed. It has been defunct since furrr 0.3.0
6+
(May 2022).
7+
38
## Features / Fixes
49

510
* Detangled furrr's documentation from purrr's to avoid some documentation

R/furrr-options.R

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -161,38 +161,6 @@ print.furrr_options <- function(x, ...) {
161161

162162
# ------------------------------------------------------------------------------
163163

164-
#' Deprecated furrr options
165-
#'
166-
#' @description
167-
#' `r lifecycle::badge("defunct")`
168-
#'
169-
#' As of furrr 0.3.0, `future_options()` is defunct in favor of
170-
#' [furrr_options()].
171-
#'
172-
#' @inheritParams furrr_options
173-
#'
174-
#' @keywords internal
175-
#' @export
176-
#' @examples
177-
#' try(future_options())
178-
future_options <- function(
179-
globals = TRUE,
180-
packages = NULL,
181-
seed = FALSE,
182-
scheduling = 1.0
183-
) {
184-
lifecycle::deprecate_stop("0.3.0", "future_options()", "furrr_options()")
185-
186-
furrr_options(
187-
globals = globals,
188-
packages = packages,
189-
seed = seed,
190-
scheduling = scheduling
191-
)
192-
}
193-
194-
# ------------------------------------------------------------------------------
195-
196164
assert_furrr_options <- function(x) {
197165
if (!is_furrr_options(x)) {
198166
abort("`.options` must be created from `furrr_options()`.")
@@ -325,7 +293,7 @@ validate_seed <- function(x) {
325293
}
326294

327295
validate_seed_list <- function(x) {
328-
seeds_are_integers <- purrr::map_lgl(x, ~typeof(.x) == "integer")
296+
seeds_are_integers <- purrr::map_lgl(x, ~ typeof(.x) == "integer")
329297
if (!all(seeds_are_integers)) {
330298
abort("All elements of a list `seed` must be integers.")
331299
}

man/future_options.Rd

Lines changed: 0 additions & 43 deletions
This file was deleted.

tests/testthat/_snaps/deprecation.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/testthat/test-deprecation.R

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)