Skip to content

Commit

Permalink
fix: correct issue w/ integer nm for new_sf_list
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Aug 26, 2023
1 parent 1bacf1d commit 01d50de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/sf_list.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ new_sf_list <- function(x,
.name_repair <- janitor::make_clean_names
}

x <- set_names_repair(x, nm = nm, .name_repair = .name_repair)
x <- set_names_repair(
x,
nm = as.character(nm),
.name_repair = .name_repair
)

vctrs::new_list_of(
x,
Expand Down

0 comments on commit 01d50de

Please sign in to comment.