Support UTF-8 content in local_tempfile(lines = )
Closed this issue · 2 comments
MichaelChirico commented
We have some code in our test suite that is ripe for replacement by withr::local_tempfile()
's lines=
argument, but it needs to support UTF-8 as we test some encoding stuff in that suite:
Would the approach there (write to a connection with encoding declared) be more suitable for use in {withr}?
Happy to file a PR.
hadley commented
Yeah, and we should possibly use mode = "wb"
to consistently write the same data on windows and linux/mac.
MLopez-Ibanez commented
Same as #216 ?