[R-SIG-Mac] problem loading ggplot2 package
Anirban Mukherjee
anirbanm at smu.edu.sg
Sat Mar 5 03:13:35 CET 2011
I would suggest updating R to 2.12.2. That should be fairly seamless/painless.
A
--
Anirban Mukherjee | Assistant Professor, Marketing
LKCSB, Singapore Management University
5056 School of Business, 50 Stamford Road
Singapore 178899 | +65-6828-1932
On Mar 5, 2011, at 12:14 AM, MacQueen, Don wrote:
> Peter,
>
> There should not be a problem with ggplot2 on a Mac; I was able to install
> and load it without difficulty just now (see below). (though apparently
> some dependencies are not available, so perhaps some ggplot2 functions
> won't work properly; I don't know)
>
> This does tend to suggest something is awry with your R installation, as
> Bob Bond-Lamberty suggested in his response. Note that I have 32 bit R
> 2.12.2 whereas you have 64 bit 2.12.1. I don't think the 32 vs 64 bit is
> the problem, since I can run R64 and load ggplot2.
>
> Does
> traceback()
> used immediately after the error, give any useful information?
>
> Not much help, I know...
>
> -Don
>
>> install.packages('ggplot2',dep=TRUE)
> --- Please select a CRAN mirror for use in this session ---
> Loading Tcl/Tk interface ... done
> Warning: dependencies 'marray', 'affy', 'Biobase' are not available
> also installing the dependencies 'logspline', 'digest', 'quantreg',
> 'hexbin'
>
> trying URL
> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/logspline_2.1
> .3.tgz'
> Content type 'application/x-gzip' length 409453 bytes (399 Kb)
> opened URL
> ==================================================
> downloaded 399 Kb
>
> trying URL
> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/digest_0.4.2.
> tgz'
> Content type 'application/x-gzip' length 120633 bytes (117 Kb)
> opened URL
> ==================================================
> downloaded 117 Kb
>
> trying URL
> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/quantreg_4.57
> .tgz'
> Content type 'application/x-gzip' length 2818374 bytes (2.7 Mb)
> opened URL
> ==================================================
> downloaded 2.7 Mb
>
> trying URL
> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/hexbin_1.24.0
> .tgz'
> Content type 'application/x-gzip' length 690100 bytes (673 Kb)
> opened URL
> ==================================================
> downloaded 673 Kb
>
> trying URL
> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/ggplot2_0.8.9
> .tgz'
> Content type 'application/x-gzip' length 2481399 bytes (2.4 Mb)
> opened URL
> ==================================================
> downloaded 2.4 Mb
>
>
> The downloaded packages are in
>
> /var/folders/pa/pamYryRNGGKLDVNRYyxBt+++m+c/-Tmp-//RtmplZqsQp/downloaded_pa
> ckages
>
>> require(ggplot2)
> Loading required package: ggplot2
> Loading required package: reshape
> Loading required package: plyr
>
> Attaching package: 'reshape'
>
> The following object(s) are masked from 'package:plyr':
>
> round_any
>
> Loading required package: grid
> Loading required package: proto
>
>
>
>
>> sessionInfo()
> R version 2.12.2 (2011-02-25)
> Platform: i386-apple-darwin9.8.0/i386 (32-bit)
>
> locale:
> [1] C
>
> attached base packages:
> [1] grid stats graphics grDevices utils datasets methods
> [8] base
>
> other attached packages:
> [1] ggplot2_0.8.9 proto_0.3-8 reshape_0.8.4 plyr_1.4
>
> loaded via a namespace (and not attached):
> [1] tcltk_2.12.2 tools_2.12.2
>
>
>
>
> --
> Don MacQueen
>
> Lawrence Livermore National Laboratory
> 7000 East Ave., L-627
> Livermore, CA 94550
> 925-423-1062
>
>
>
>
>
> On 3/4/11 7:19 AM, "linsleys" <linsleys at comcast.net> wrote:
>
>> I'm having trouble loading ggplot2 using R version 2.12.1, as shown
>> below. I can't seem to find a relevant post that fixes my problem. Any
>> help would be very much appreciated. Thanks,
>>
>> peter l
>>
>>> install.packages('ggplot2', dep = TRUE)
>> trying URL
>> 'http://cran.cnr.Berkeley.edu/bin/macosx/leopard/contrib/2.12/ggplot2_0.8.
>> 9.tgz'
>> Content type 'application/x-gzip' length 2481399 bytes (2.4 Mb)
>> opened URL
>> =================================================
>> downloaded 2.4 Mb
>>
>>
>> The downloaded packages are in
>>
>> /var/folders/XF/XF0tU7gdGTeF4Th7KhKYDk+++TI/-Tmp-//RtmpFMnqLB/downloaded_p
>> ackages
>>> library(ggplot2)
>> Error in assign(names[i], dots[[i]], env = envir) :
>> invalid first argument
>> Error : unable to load R code in package 'ggplot2'
>> Error: package/namespace load failed for 'ggplot2'
>>
>> sessionInfo() R version 2.12.1 (2010-12-16) Platform:
>> x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1]
>> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8 attached base
>> packages: [1] grid stats graphics grDevices utils datasets methods [8]
>> base other attached packages: [1] proto_0.3-8 reshape_0.8.4 plyr_1.4
>> loaded via a namespace (and not attached): [1] tcltk_2.12.2
>> tools_2.12.2
>>
>>
>>
>> --
>> Peter and Leslie Linsley
>> 2528 11th Ave W
>> Seattle, WA 98119
>> linsleys at comcast.net
>> 206.818.3206 P-cell
>> 206-818-3167 L-cell
>>
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
More information about the R-SIG-Mac
mailing list