Skip to content

Commit

Permalink
More explicit and efficient
Browse files Browse the repository at this point in the history
Co-authored-by: mark padgham <[email protected]>
  • Loading branch information
jmaspons and mpadge authored Jul 24, 2024
1 parent e53a616 commit a81f652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get-osmdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ get_center_from_cpp_output <- function (res, what = "points") {
#' @return `x` with all the columns or items of type character with UTF-8 encoding set.
#' @noRd
setenc_utf8 <- function(x) {
char_cols <- vapply (x, is.character, FUN.VALUE = logical (1))
char_cols <- which (vapply (x, is.character, FUN.VALUE = logical (1)))
x [char_cols] <- lapply (x [char_cols], function (y) {
Encoding (y) <- "UTF-8"
y
Expand Down

0 comments on commit a81f652

Please sign in to comment.