-
Notifications
You must be signed in to change notification settings - Fork 292
Expand file tree
/
Copy pathmap-raw.R
More file actions
43 lines (39 loc) · 1.12 KB
/
map-raw.R
File metadata and controls
43 lines (39 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#' Functions that return raw vectors
#'
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' These functions were deprecated in purrr 1.0.0 because they are of limited
#' use and you can now use [map_vec()] instead. They are variants of [map()],
#' [map2()], [imap()], [pmap()], and [flatten()] that return raw vectors.
#'
#' @keywords internal
#' @export
map_raw <- function(.x, .f, ...) {
lifecycle::deprecate_warn("1.0.0", "map_raw()", "map_vec()")
map_("raw", .x, .f, ...)
}
#' @export
#' @rdname map_raw
map2_raw <- function(.x, .y, .f, ...) {
lifecycle::deprecate_warn("1.0.0", "map2_raw()", "map2_vec()")
map2_("raw", .x, .y, .f, ...)
}
#' @rdname map_raw
#' @export
imap_raw <- function(.x, .f, ...) {
lifecycle::deprecate_warn("1.0.0", "imap_raw()", "imap_vec()")
map2_("raw", .x, vec_index(.x), .f, ...)
}
#' @export
#' @rdname map_raw
pmap_raw <- function(.l, .f, ...) {
lifecycle::deprecate_warn("1.0.0", "pmap_raw()", "pmap_vec()")
pmap_("raw", .l, .f, ...)
}
#' @export
#' @rdname map_raw
flatten_raw <- function(.x) {
lifecycle::deprecate_warn("1.0.0", "flatten_raw()")
.Call(vflatten_impl, .x, "raw")
}