Skip to content

Commit a74d203

Browse files
authored
Remove all *_raw() functions (#298)
* Remove all `*_raw()` functions * NEWS bullet
1 parent 0c038bf commit a74d203

16 files changed

Lines changed: 4 additions & 218 deletions

NAMESPACE

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ export(future_imap_dfc)
2525
export(future_imap_dfr)
2626
export(future_imap_int)
2727
export(future_imap_lgl)
28-
export(future_imap_raw)
2928
export(future_invoke_map)
3029
export(future_invoke_map_chr)
3130
export(future_invoke_map_dbl)
3231
export(future_invoke_map_dfc)
3332
export(future_invoke_map_dfr)
3433
export(future_invoke_map_int)
3534
export(future_invoke_map_lgl)
36-
export(future_invoke_map_raw)
3735
export(future_iwalk)
3836
export(future_map)
3937
export(future_map2)
@@ -43,7 +41,6 @@ export(future_map2_dfc)
4341
export(future_map2_dfr)
4442
export(future_map2_int)
4543
export(future_map2_lgl)
46-
export(future_map2_raw)
4744
export(future_map_at)
4845
export(future_map_chr)
4946
export(future_map_dbl)
@@ -52,7 +49,6 @@ export(future_map_dfr)
5249
export(future_map_if)
5350
export(future_map_int)
5451
export(future_map_lgl)
55-
export(future_map_raw)
5652
export(future_modify)
5753
export(future_modify_at)
5854
export(future_modify_if)
@@ -63,7 +59,6 @@ export(future_pmap_dfc)
6359
export(future_pmap_dfr)
6460
export(future_pmap_int)
6561
export(future_pmap_lgl)
66-
export(future_pmap_raw)
6762
export(future_pwalk)
6863
export(future_walk)
6964
export(future_walk2)

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Breaking changes
44

5+
* All `*_raw()` variants from purrr have been removed, such as
6+
`future_map_raw()`. purrr 1.0.0 has deprecated these, they have limited use,
7+
and as far as we can tell no packages were using them (#298).
8+
59
* `future_options()` has been removed. It has been defunct since furrr 0.3.0
610
(May 2022).
711

R/future-imap.R

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,6 @@ future_imap_lgl <- function(
129129
)
130130
}
131131

132-
#' @rdname future_imap
133-
#' @export
134-
future_imap_raw <- function(
135-
.x,
136-
.f,
137-
...,
138-
.options = furrr_options(),
139-
.env_globals = parent.frame(),
140-
.progress = FALSE
141-
) {
142-
future_map2_raw(
143-
.x = .x,
144-
.y = vec_index(.x),
145-
.f = .f,
146-
...,
147-
.options = .options,
148-
.env_globals = .env_globals,
149-
.progress = .progress
150-
)
151-
}
152-
153132
#' @rdname future_imap
154133
#' @export
155134
future_imap_dfr <- function(

R/future-invoke-map.R

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -169,32 +169,6 @@ future_invoke_map_lgl <- function(
169169
)
170170
}
171171

172-
#' @rdname future_invoke_map
173-
#' @export
174-
future_invoke_map_raw <- function(
175-
.f,
176-
.x = list(NULL),
177-
...,
178-
.env = NULL,
179-
.options = furrr_options(),
180-
.env_globals = parent.frame(),
181-
.progress = FALSE
182-
) {
183-
.env <- .env %||% parent.frame()
184-
.f <- as_invoke_function(.f)
185-
186-
future_map2_raw(
187-
.x = .f,
188-
.y = .x,
189-
.f = purrr::invoke,
190-
...,
191-
.env = .env,
192-
.options = .options,
193-
.env_globals = .env_globals,
194-
.progress = .progress
195-
)
196-
}
197-
198172
#' @rdname future_invoke_map
199173
#' @export
200174
future_invoke_map_dfr <- function(

R/future-map.R

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -211,28 +211,6 @@ future_map_lgl <- function(
211211
)
212212
}
213213

214-
#' @rdname future_map
215-
#' @export
216-
future_map_raw <- function(
217-
.x,
218-
.f,
219-
...,
220-
.options = furrr_options(),
221-
.env_globals = parent.frame(),
222-
.progress = FALSE
223-
) {
224-
furrr_map_template(
225-
x = .x,
226-
fn = .f,
227-
dots = list(...),
228-
options = .options,
229-
progress = .progress,
230-
type = "raw",
231-
purrr_fn_name = "map_raw",
232-
env_globals = .env_globals
233-
)
234-
}
235-
236214
#' @rdname future_map
237215
#' @export
238216
future_map_dfr <- function(

R/future-map2.R

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -189,30 +189,6 @@ future_map2_lgl <- function(
189189
)
190190
}
191191

192-
#' @rdname future_map2
193-
#' @export
194-
future_map2_raw <- function(
195-
.x,
196-
.y,
197-
.f,
198-
...,
199-
.options = furrr_options(),
200-
.env_globals = parent.frame(),
201-
.progress = FALSE
202-
) {
203-
furrr_map2_template(
204-
x = .x,
205-
y = .y,
206-
fn = .f,
207-
dots = list(...),
208-
options = .options,
209-
progress = .progress,
210-
type = "raw",
211-
purrr_fn_name = "map2_raw",
212-
env_globals = .env_globals
213-
)
214-
}
215-
216192
#' @rdname future_map2
217193
#' @export
218194
future_map2_dfr <- function(

R/future-pmap.R

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,6 @@ future_pmap_lgl <- function(
108108
)
109109
}
110110

111-
#' @rdname future_map2
112-
#' @export
113-
future_pmap_raw <- function(
114-
.l,
115-
.f,
116-
...,
117-
.options = furrr_options(),
118-
.env_globals = parent.frame(),
119-
.progress = FALSE
120-
) {
121-
furrr_pmap_template(
122-
l = .l,
123-
fn = .f,
124-
dots = list(...),
125-
options = .options,
126-
progress = .progress,
127-
type = "raw",
128-
purrr_fn_name = "pmap_raw",
129-
env_globals = .env_globals
130-
)
131-
}
132-
133111
#' @rdname future_map2
134112
#' @export
135113
future_pmap_dfr <- function(

man/future_imap.Rd

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/future_invoke_map.Rd

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/future_map.Rd

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)