diff --git a/R/tidyverse.R b/R/tidyverse.R index 078de32a9..52bb1fc83 100644 --- a/R/tidyverse.R +++ b/R/tidyverse.R @@ -269,7 +269,7 @@ rename_with.sf = function(.data, .fn, .cols, ...) { ret = dplyr::as_tibble(ret) ret = st_as_sf(ret, sf_column_name = names(ret)[sf_column_loc]) - names(agr) = .fn(names(agr)) + names(agr) = .fn(names(agr), ...) st_agr(ret) = agr ret }