Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ URL: https://github.com/futureverse/furrr, https://furrr.futureverse.org/
BugReports: https://github.com/futureverse/furrr/issues
Depends:
future (>= 1.25.0),
R (>= 3.4.0)
R (>= 4.1.0)
Imports:
globals (>= 0.14.0),
lifecycle (>= 1.0.1),
Expand All @@ -27,7 +27,6 @@ Suggests:
dplyr (>= 0.7.4),
knitr,
listenv (>= 0.6.0),
magrittr,
rmarkdown,
testthat (>= 3.0.0),
tidyselect,
Expand All @@ -37,4 +36,4 @@ Config/Needs/website:
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
RoxygenNote: 7.3.3
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
# furrr (development version)

## Signficant changes

* furrr now requires R >= 4.1.0 (2021-05-18), because examples and vignettes
now use the base R pipe.

## Features / Fixes

* Fixed an issue where generating random seeds could sporadically fail (#271,
@HenrikBengtsson).

## Documentation

* Updated documentation examples and vignettes to use the base R pipe symbol
instead of the magrittr `%>%` pipe operator (#285, @HenrikBengtsson).

# furrr 0.3.1

* Redocumented the package with roxygen2 7.2.1 to fix invalid HTML5 issues
Expand Down
11 changes: 5 additions & 6 deletions R/future-map.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,17 @@
#'
#' @export
#' @examples
#' library(magrittr)
#' \donttest{plan(multisession, workers = 2)}
#'
#' 1:10 %>%
#' future_map(rnorm, n = 10, .options = furrr_options(seed = 123)) %>%
#' 1:10 |>
#' future_map(rnorm, n = 10, .options = furrr_options(seed = 123)) |>
#' future_map_dbl(mean)
#'
#' # If each element of the output is a data frame, use
#' # `future_map_dfr()` to row-bind them together:
#' mtcars %>%
#' split(.$cyl) %>%
#' future_map(~ lm(mpg ~ wt, data = .x)) %>%
#' mtcars |>
#' split(mtcars$cyl) |>
#' future_map(~ lm(mpg ~ wt, data = .x)) |>
#' future_map_dfr(~ as.data.frame(t(as.matrix(coef(.)))))
#'
#'
Expand Down
9 changes: 4 additions & 5 deletions R/future-modify.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,17 @@
#'
#' @export
#' @examples
#' library(magrittr)
#' \donttest{plan(multisession, workers = 2)}
#'
#' # Convert each col to character, in parallel
#' future_modify(mtcars, as.character)
#'
#' iris %>%
#' future_modify_if(is.factor, as.character) %>%
#' iris |>
#' future_modify_if(is.factor, as.character) |>
#' str()
#'
#' mtcars %>%
#' future_modify_at(c(1, 4, 5), as.character) %>%
#' mtcars |>
#' future_modify_at(c(1, 4, 5), as.character) |>
#' str()
#'
#' \dontshow{
Expand Down
46 changes: 23 additions & 23 deletions man/future_imap.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 31 additions & 29 deletions man/future_map.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 28 additions & 38 deletions man/future_map2.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading