Skip to content

Commit

Permalink
Try manual re-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Jan 10, 2024
1 parent 6a7ec8c commit 3008620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tempfile.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ local_tempfile <- function(new = NULL, lines = NULL, envir = parent.frame(), .lo
con <- file(path, open = "wb", encoding = "UTF-8")
defer(close(con))

writeLines(lines, con)
writeLines(enc2utf8(lines), con)
}

defer(unlink(path, recursive = TRUE), envir = .local_envir)
Expand Down

0 comments on commit 3008620

Please sign in to comment.