Skip to content

Commit

Permalink
dont pass to qto_div or qto_callout
Browse files Browse the repository at this point in the history
collapse and sep aren't passed to div or callout
  • Loading branch information
ElianHugh committed Dec 22, 2023
1 parent 2d11d2e commit ce5ef81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions R/map.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
partial_qto_func <- function(f, collapse, sep) {
function(...) {
f(..., collapse = collapse, sep = sep)
if (identical(f, qto_callout) || identical(f, qto_div)) {
function(...) f(...)
} else {
function(...) f(..., collapse = collapse, sep = sep)
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/testthat/test_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ test_that("pmap_qto works", {
expect_true(check_types(qto_list))
expect_snapshot(qto_list)
})

0 comments on commit ce5ef81

Please sign in to comment.