Thanks for the report. BTW, this is not new in 2.5.0 alpha AFAICS.
It needs a tiny change in the C function readRaw: fixed in SVN now.
On Sat, 7 Apr 2007, Henrik Bengtsson wrote:
> FYI, in R v2.5.0 alpha, readBin() can be used to read beyond end of raw
> vector:
>
>> bfr <- as.raw(1:10)
>> read
FYI, in R v2.5.0 alpha, readBin() can be used to read beyond end of raw vector:
> bfr <- as.raw(1:10)
> readBin(con=bfr, what="raw", n=20)
[1] 01 02 03 04 05 06 07 08 09 0a
> readBin(con=bfr, what="integer", n=20)
[1] 67305985 134678021
> readBin(con=bfr, what="integer", size=4, n=20)
[1] 673