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

Jam One jamone_95134 at yahoo.com
Tue Mar 24 07:36:09 CET 2015


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)

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[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  MASS_7.3-40    

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 'http://cran.rstudio.com/bin/windows/contrib/3.1/ggplot2_1.0.1.zip'
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> memory.limit(4000)
[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]]



More information about the R-help mailing list