search for: tmpfilepath

Displaying 5 results from an estimated 5 matches for "tmpfilepath".

Did you mean: tempfilepath
2018 Feb 15
2
writeLines argument useBytes = TRUE still making conversions
I think this behavior is inconsistent with the documentation: tmp <- '?' tmp <- iconv(tmp, to = 'UTF-8') print(Encoding(tmp)) print(charToRaw(tmp)) tmpfilepath <- tempfile() writeLines(tmp, con = file(tmpfilepath, encoding = 'UTF-8'), useBytes = TRUE) [1] "UTF-8" [1] c3 a9 Raw text as hex: c3 83 c2 a9 If I switch to useBytes = FALSE, then the variable is written correctly as c3 a9. Any thoughts? This behavior is related to this...
2018 Feb 17
1
writeLines argument useBytes = TRUE still making conversions
...>>>> I think this behavior is inconsistent with the documentation: >>>> >>>> tmp <- '?' >>>> tmp <- iconv(tmp, to = 'UTF-8') >>>> print(Encoding(tmp)) >>>> print(charToRaw(tmp)) >>>> tmpfilepath <- tempfile() >>>> writeLines(tmp, con = file(tmpfilepath, encoding = 'UTF-8'), useBytes = TRUE) >>>> >>>> [1] "UTF-8" >>>> [1] c3 a9 >>>> >>>> Raw text as hex: c3 83 c2 a9 >>>> >>>&g...
2018 Feb 15
2
writeLines argument useBytes = TRUE still making conversions
...vor Josipovic <davorj at live.com> wrote: >> >> I think this behavior is inconsistent with the documentation: >> >> tmp <- '?' >> tmp <- iconv(tmp, to = 'UTF-8') >> print(Encoding(tmp)) >> print(charToRaw(tmp)) >> tmpfilepath <- tempfile() >> writeLines(tmp, con = file(tmpfilepath, encoding = 'UTF-8'), useBytes = TRUE) >> >> [1] "UTF-8" >> [1] c3 a9 >> >> Raw text as hex: c3 83 c2 a9 >> >> If I switch to useBytes = FALSE, then the variable is written...
2018 Feb 15
0
writeLines argument useBytes = TRUE still making conversions
...ed, Feb 14, 2018 at 11:36 PM, Davor Josipovic <davorj at live.com> wrote: > > I think this behavior is inconsistent with the documentation: > > tmp <- '?' > tmp <- iconv(tmp, to = 'UTF-8') > print(Encoding(tmp)) > print(charToRaw(tmp)) > tmpfilepath <- tempfile() > writeLines(tmp, con = file(tmpfilepath, encoding = 'UTF-8'), useBytes = TRUE) > > [1] "UTF-8" > [1] c3 a9 > > Raw text as hex: c3 83 c2 a9 > > If I switch to useBytes = FALSE, then the variable is written correctly as c3 a9. > >...
2018 Feb 17
0
writeLines argument useBytes = TRUE still making conversions
....com> wrote: >>> >>> I think this behavior is inconsistent with the documentation: >>> >>> tmp <- '?' >>> tmp <- iconv(tmp, to = 'UTF-8') >>> print(Encoding(tmp)) >>> print(charToRaw(tmp)) >>> tmpfilepath <- tempfile() >>> writeLines(tmp, con = file(tmpfilepath, encoding = 'UTF-8'), useBytes = TRUE) >>> >>> [1] "UTF-8" >>> [1] c3 a9 >>> >>> Raw text as hex: c3 83 c2 a9 >>> >>> If I switch to useBytes = FAL...