Re: installing ggplot2 for mac mountain lion

408 views
Skip to first unread message

Frans Slothouber

unread,
Sep 26, 2012, 7:51:09 AM9/26/12
to Elizabeth Webb, ggp...@googlegroups.com
Hi Elizabeth,

Looks like the repository a wwu.edu is broken.
You can solve it by selecting a different mirror to get your packages from.

Kind regards,
Frans.

On 26 September 2012 02:50, Elizabeth Webb <webb.eli...@gmail.com> wrote:
> Hi-
> I am having difficulty installing ggplot2 . This may be because I am
> running mountain lion on my mac. When I try to install.packages("ggplot2"),
> I get the following error:
>
> Warning: unable to access index for repository
> http://cran.cs.wwu.edu/bin/macosx/leopard/contrib/2.15
>
> Warning message:
>
> package ‘ggplot2’ is not available (for R version 2.15.1)
>
> I then tried to manually install tar.gz file. Installation works fine but
> then when I try to load the package: library("ggplot2"), I get the
> following error:
>
> Error in loadNamespace(i, c(lib.loc, .libPaths())) :
>
> there is no package called ‘digest’
>
> Error: package/namespace load failed for ‘ggplot2’
>
>
> Any ideas how to solve this?
>
>
> Thanks,
>
> Elizabeth
>
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
> https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

Elizabeth Webb

unread,
Sep 26, 2012, 8:26:27 AM9/26/12
to ggp...@googlegroups.com, Elizabeth Webb
Hi- 
I followed Frans' advice and installed with a different repository.  I then had to install each of the following packages:

digest,memoise,plyr,stringr,reshape2, munsell, colorspace, and scales in order to finally install ggplot2.   There must be an easier way?  But at any rate I now have ggplot2.  Thanks for the help.

Elizabeth

Frans Slothouber

unread,
Sep 26, 2012, 9:43:31 AM9/26/12
to Elizabeth Webb, ggp...@googlegroups.com
Hi Elizabeth,

What command did you use to install ggplot?

A

install.packages("ggplot2")

should install ggplot and all the packages it depends on.

Frans.

Elizabeth Webb

unread,
Sep 27, 2012, 8:48:21 AM9/27/12
to ggp...@googlegroups.com, Elizabeth Webb
Frans-
I installed using the package installer because that way I could change the repository.   
It seems it may be more than just a broken repository, as the new one also caused trouble.  

Someone else mentioned I could permanently change my repository (still working on that), but since I got errors using two repositories, I'm not sure if that will help.

Elizabeth

Hasan Diwan

unread,
Sep 27, 2012, 9:08:16 AM9/27/12
to Elizabeth Webb, ggp...@googlegroups.com
Ms Webb,

On 27 September 2012 08:48, Elizabeth Webb <webb.eli...@gmail.com> wrote:
I installed using the package installer because that way I could change the repository.   

install.packages('ggplot2', repos='http://whatever.my.cran.mirror/is', dep=TRUE) will do the installation with dependencies in a pinch.  -- H
-- 
Sent from my mobile device
Envoyait de mon portable
Reply all
Reply to author
Forward
0 new messages