Displaying 3 results from an estimated 3 matches for "ronjgoodm".
2018 May 23
1
patch for scan.c for long vector support
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 could not make a bugzilla account, so I am sending the patch here.
[[alternative HTML version
2018 May 26
2
Buffering in R 3.5 connections causes incorrect data in readChar
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 is a test case that I used to home in on the problem.
---
p<-"test2.txt"
2018 May 29
1
Buffering in R 3.5 connections causes incorrect data in readChar
Tomas,
Thank you for the explanation. I see in the documentation: "These functions
are intended to be used with binary-mode connections." So I see how using
it on a text connection is undefined, and not a bug. An error or warning
when attempting to use a it on a text connection would be helpful
considering how the behavior has changed in R-3.5.
On Tue, May 29, 2018 at 3:09 AM, Tomas