[R] ggplot2 Error : cannot allocate vector of size 1.9 Gb

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Tue Mar 24 22:44:08 CET 2015

Upgrade your copy of R to the latest.
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
Sent from my phone. Please excuse my brevity.

On March 23, 2015 11:36:09 PM PDT, Jam One <jamone_95134 at yahoo.com> wrote:
>Dear All,
>I have a showstopper here. I cannot run a library(UsingR) because I
>cannot load the package 'ggplot2'.
>> sessionInfo()
>R version 3.1.0 (2014-04-10)
>Platform: i386-w64-mingw32/i386 (32-bit)
>[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
>[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C                
>[5] LC_TIME=English_United States.1252    
>attached base packages:
>[1] splines   grid      stats     graphics  grDevices utils    
>datasets  methods  
>[9] base     
>other attached packages:
>[1] Formula_1.2-0   survival_2.38-1 lattice_0.20-29 HistData_0.7-5 
>loaded via a namespace (and not attached):
>[1] digest_0.6.6 gtable_0.1.2 tools_3.1.0 
>> install.packages("ggplot2")
>Installing package into ‘C:/Users/xxxxxxx/Documents/R/win-library/3.1’
>(as ‘lib’ is unspecified)
>trying URL
>Content type 'application/zip' length 2675835 bytes (2.6 Mb)
>opened URL
>downloaded 2.6 Mb
>package ‘ggplot2’ successfully unpacked and MD5 sums checked
>The downloaded binary packages are in
>	C:\Users\xxxxxxx\AppData\Local\Temp\RtmpSA08kR\downloaded_packages>
>[1] 4000
>> library(UsingR)
>Loading required package: Hmisc
>Loading required package: ggplot2
>Error : cannot allocate vector of size 1.9 Gb
>In addition: Warning messages:
>1: package ‘UsingR’ was built under R version 3.1.3 
>2: package ‘Hmisc’ was built under R version 3.1.3 
>3: package ‘ggplot2’ was built under R version 3.1.3 
>Error: package ‘ggplot2’ could not be loaded
>Can anyone suggest a solution to this problem, and NO switching to a
>64-bit machine is not an option?
>Thanks in advance.
>	[[alternative HTML version deleted]]
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>PLEASE do read the posting guide
>and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list