Skip to content

Commit

Permalink
Use bytes to avoid re-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Aug 18, 2017
1 parent c5f33cb commit 5d4f369
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-io.R
Expand Up @@ -12,5 +12,5 @@ write_lines <- function(text, path) {
con <- file(path, open = "w", encoding = "utf-8")
on.exit(close(con))

base::writeLines(text, con)
base::writeLines(text, con, useBytes = TRUE)
}

0 comments on commit 5d4f369

Please sign in to comment.