[R] ggplot2 Error : cannot allocate vector of size 1.9 Gb
Jeff Newmiller
jdnewmil at dcn.davis.CA.us
Wed Mar 25 03:44:37 CET 2015
Because no package loads 1.9GB of data when you load it into memory, so this has to be a bug. The first thing to do when the software is acting buggy is to update to current.
Having done that, I think it is time to contact the maintainer (see ?maintainer).
For future reference, your posting is corrupted because you are posting using HTML format email rather than plain text as the Posting Guide tells you to.
---------------------------------------------------------------------------
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 24, 2015 7:18:29 PM PDT, Jam One <jamone_95134 at yahoo.com> wrote:
>> sessionInfo()
>R version 3.1.3 (2015-03-09)
>Platform: i386-w64-mingw32/i386 (32-bit)
>Running under: Windows 7 (build 7601) Service Pack 1
>
>locale:
>[1] LC_COLLATE=English_United States.1252
>[2] LC_CTYPE=English_United States.1252
>[3] LC_MONETARY=English_United States.1252
>[4] LC_NUMERIC=C
>[5] LC_TIME=English_United States.1252
>
>attached base packages:
>[1] stats graphics grDevices utils datasets methods
>base
>
>loaded via a namespace (and not attached):
>[1] digest_0.6.6 grid_3.1.3 gtable_0.1.2 tools_3.1.3
>
>> library(ggplot2)Error : cannot allocate vector of size 1.9 Gb
>In addition: Warning messages:
>1: In get(Info[i, 1], envir = env) :
> Reached total allocation of 1535Mb: see help(memory.size)
>2: In get(Info[i, 1], envir = env) :
> Reached total allocation of 1535Mb: see help(memory.size)
>3: In get(Info[i, 1], envir = env) :
> Reached total allocation of 1535Mb: see help(memory.size)
>4: In get(Info[i, 1], envir = env) :
> Reached total allocation of 1535Mb: see help(memory.size)
>Error: package or namespace load failed for ‘ggplot2’
>> memory.size(4000)
>[1] 4000
>> library(ggplot2)
>Error : cannot allocate vector of size 1.9 Gb
>Error: package or namespace load failed for ‘ggplot2’
>Just curious, why did you think that solution would work?
> From: Jeff Newmiller <jdnewmil at dcn.davis.CA.us>
>To: Jam One <jamone_95134 at yahoo.com>; "r-help at R-project.org"
><r-help at r-project.org>
> Sent: Wednesday, March 25, 2015 4:44 AM
> Subject: Re: [R] ggplot2 Error : cannot allocate vector of size 1.9 Gb
>
>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)
>>
>>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]]
>>
>>______________________________________________
>>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide
>>http://www.R-project.org/posting-guide.html
>>and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list