Re: [Rd] Buffering in R 3.5 connections causes incorrect data in readChar

2018-05-29 Thread Aaron Goodman
be helpful considering how the behavior has changed in R-3.5. On Tue, May 29, 2018 at 3:09 AM, Tomas Kalibera wrote: > On 05/26/2018 05:15 AM, Aaron Goodman wrote: > >> I noticed an issue where readChar does not return the correct value after >> a >> call to readline. It

[Rd] Buffering in R 3.5 connections causes incorrect data in readChar

2018-05-28 Thread Aaron Goodman
I noticed an issue where readChar does not return the correct value after a call to readline. It appears that readChar is not aware of the buffering, so it reads from the end of the buffer, rather than the current position in the file. This is a significant change of behavior from R-3.4.4. Below i

[Rd] patch for scan.c for long vector support

2018-05-23 Thread Aaron Goodman
I noticed that scan.c does not yet support long vectors. It was causing a problem in the rstan library (https://github.com/stan-dev/rstan/issues/530) I was able to patch base R to add long vector support. See the following gist. https://gist.github.com/aaronjg/f39e5966687ca004dab5a10e7655c648 I c