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 b9cde49 commit 2acdd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils-io.R
Original file line number Diff line number Diff line change
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 2acdd9d

Please sign in to comment.