[Rd] capture.output() is trying to allocate 17179869182.6 Gb on my not so big data.frame

From: Hervé Pagès <hpages_at_fhcrc.org>
Date: Tue, 07 Feb 2012 16:08:13 -0800


Hi,

This is what I get with recent R devel on a 64-bit Ubuntu laptop:

> mydf <- data.frame(a=1:2080, b=1001:2040, c=letters, d=LETTERS,
e=1:1040)

> mydf_in_a_character_vector <- capture.output(mydf)
   Error in print.default(m, ..., quote = quote, right = right) :      cannot allocate memory block of size 17179869182.6 Gb

I get something similar with R 2.14.1.

Cheers,
H.

 > sessionInfo()
R Under development (unstable) (2012-01-16 r58124) Platform: x86_64-unknown-linux-gnu (64-bit)

locale:

  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
  [7] LC_PAPER=C                 LC_NAME=C
  [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

-- 
Hervé Pagès

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages_at_fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 08 Feb 2012 - 00:10:23 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 08 Feb 2012 - 09:00:14 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.

list of date sections of archive