[Rd] serialize changes for 2.4.0

From: Roger D. Peng <rdpeng_at_gmail.com>
Date: Tue 05 Sep 2006 - 19:41:15 GMT


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/

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed Sep 06 06:53:00 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 06 Sep 2006 - 11:39:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.