Skip to content

Commit

Permalink
#85 use locale() for read_file
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Jun 7, 2016
1 parent e04692f commit fa25d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/zzz.r
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,11 @@ geojson_rw_ <- function(input, ...){
tmp <- tempfile(fileext = ".geojson")
tmp2 <- suppressMessages(geojson_write(input, file = tmp))
paths <- vapply(tg_compact(tmp2), "[[", "", "path")
lapply(paths, readr::read_file, ...)
lapply(paths, readr::read_file, locale = readr::locale())
} else {
tmp <- tempfile(fileext = ".geojson")
suppressMessages(geojson_write(input, file = tmp))
readr::read_file(tmp, ...)
readr::read_file(tmp, locale = readr::locale())
}
}

Expand Down

0 comments on commit fa25d3f

Please sign in to comment.