Skip to content
Prev 1675 / 21312 Next

[Bioc-devel] Package size limitation

Hi Henrik,

Quoting Henrik Bengtsson <hb at stat.berkeley.edu>:
[...]
Yes they do:

   > xx <- sample(1000000L, 5000000, replace=TRUE)
   > typeof(xx)
   [1] "integer"
   > object.size(xx)
   [1] 20000040
   > yy <- as.double(xx)
   > typeof(yy)
   [1] "double"
   > object.size(yy)
   [1] 40000040
   > save(xx, file="xx.rda")
   > save(yy, file="yy.rda")

Then from the shell:

   hpages at lamprey:~> ls -lh *.rda
   -rw-r--r-- 1 hpages compbio 16M 2008-08-01 10:19 xx.rda
   -rw-r--r-- 1 hpages compbio 18M 2008-08-01 10:19 yy.rda

H.