Re: [R] Truncated file upon reading a text file with 0xff characters

2016-03-15 Thread Jean-Claude Arbaut
Thank you for the answer. I was about to ask why I should avoid text connections, but actually I just noticed that with a binary connection for the read, the problem disappears (I mean, I replace "rt" with "rb" in the file open). R is even clever enough that, when feeded the latin1 file after an op

Re: [R] Truncated file upon reading a text file with 0xff characters

2016-03-15 Thread Duncan Murdoch
I think you've identified a bug (or more than one) here, but your message is so long, I haven't had time to go through it all. I'd suggest that you write up a shorter version for the bug list. The shorter version would 1. Write the latin1 file using writeBin. 2. Set options(encoding = "")

[R] Truncated file upon reading a text file with 0xff characters

2016-03-15 Thread Jean-Claude Arbaut
Hello R users, I am having problems to read a CSV file that contains names with character ΓΏ. In case it doesn't print correctly, it's Unicode character 00FF or LATIN SMALL LETTER Y WITH DIAERESIS. My computer has Windows 7 and R 3.2.4. Initially, I configured my computer to run options(encoding="