Skip to content

Commit

Permalink
fix #359
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkunst committed Aug 28, 2017
1 parent 55c34ad commit 722f69a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/highmaps.R
Expand Up @@ -170,7 +170,7 @@ download_map_data <- function(url = "custom/world.js", showinfo = FALSE) {

tmpfile <- tempfile(fileext = ".js")
download.file(url, tmpfile)
mapdata <- readLines(tmpfile, warn = FALSE)
mapdata <- readLines(tmpfile, warn = FALSE, encoding = "UTF-8")
mapdata[1] <- gsub(".* = ", "", mapdata[1])
mapdata <- paste(mapdata, collapse = "\n")
mapdata <- jsonlite::fromJSON(mapdata, simplifyVector = FALSE)
Expand Down

0 comments on commit 722f69a

Please sign in to comment.