Skip to content

Commit

Permalink
fix: add purrr:: to map calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ntorresd committed Jan 27, 2025
1 parent 8eb0a54 commit 9c315bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/helper-plot-compare.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ extract_plot_data <- function(plot) {
}

extract_layers <- function(layers) {
map(layers, function(layer) {
purrr::map(layers, function(layer) {
# Extract mappings
list(
mapping =
if (is.null(layer$mapping)) {
NULL
} else {
map(layer$mapping, \(x) {
purrr::map(layer$mapping, \(x) {
quo_name(rlang::get_expr(x))
})
},
Expand Down

0 comments on commit 9c315bf

Please sign in to comment.