Skip to content
Prev 55273 / 63424 Next

Buffering in R 3.5 connections causes incorrect data in readChar

On 05/26/2018 05:15 AM, Aaron Goodman wrote:
Thanks for the report and analysis, you are right, readChar ignores the 
buffer (and it also ignores the pushback). But please note that this 
behavior is in line with the documentation, see ?readChar: readChar must 
only be used with binary connections, but the example uses it on a text 
connection. Buffering and pushback are only used on (readable) text 
connections. I will check whether we could report a runtime error.

Best
Tomas