[Rd] serialize changes for 2.4.0
Roger D. Peng
rdpeng at gmail.com
Tue Sep 5 21:41:15 CEST 2006
I noticed today that in R 2.3.1, I get
> serialize(list(1,2,3), NULL, ascii = TRUE)
[1] "A\n2\n131841\n131840\n19\n3\n14\n1\n1\n14\n1\n2\n14\n1\n3\n"
>
but in R 2.4.0 alpha I get
> serialize(list(1,2,3), NULL, ascii = TRUE)
[1] 41 0a 32 0a 31 33 32 30 39 36 0a 31 33 31 38 34 30 0a 31 39 0a 33 0a 31 34
[26] 0a 31 0a 31 0a 31 34 0a 31 0a 32 0a 31 34 0a 31 0a 33 0a
>
It seems I need to use 'rawToChar()' to get the character vector that I used to
get in R 2.3.1.
Is this intentional? I couldn't find any mention of this change in the NEWS
file; from the docs, it seems to me that either return value could be correct.
> version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status alpha
major 2
minor 4.0
year 2006
month 09
day 05
svn rev 39121
language R
version.string R version 2.4.0 alpha (2006-09-05 r39121)
>
-roger
--
Roger D. Peng | http://www.biostat.jhsph.edu/~rpeng/
More information about the R-devel
mailing list