[R-SIG-Mac] problem loading ggplot2 package

Ben Bond-Lamberty bpbond at gmail.com
Fri Mar 4 16:28:56 CET 2011


Hi Peter,

I see you've posted this question in a bunch of other places, with no
luck? Two suggestions: 1) post this question to the ggplot2 listserv,
and 2) clean out R and all your installed packages--start fresh, and
reinstall. Personally I'd skip right to #2, even though it's a bit of
a pain.

Ben


On Fri, Mar 4, 2011 at 10: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_packages
>> 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
>



More information about the R-SIG-Mac mailing list