[R] Trouble installing packages on R2.14.1

Gavin Blackburn gavin.blackburn at strath.ac.uk
Mon Jan 16 11:01:11 CET 2012

Run this code first when you open R:


Ignore any message it gives you, if it does give any message.

that should hopefully solve the problem. If it works it would be an idea to add that to the Rprofile.site file so you don't need to do it every time you try to install/update a package.



-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Ben Bolker
Sent: 16 January 2012 01:44
To: r-help at stat.math.ethz.ch
Subject: Re: [R] Trouble installing packages on R2.14.1

Crawford Mark <Mark.Crawford <at> derm.qld.gov.au> writes:

> Hi,
> Have just recently downloaded R version 2.14.1 and can't install
> packages (Code below),  32bit version on windows. From the looks of
> things access is the problem but I don't know where to start, would it
> be my system that is the problem or is the repository not set up for the
> latest version yet?
> Any ideas on how to rectify the problem would be greatly appreciated
> Cheers
> > utils:::menuInstallPkgs()
> --- Please select a CRAN mirror for use in this session ---
> Warning: unable to access index for repository
> http://cran.csiro.au/bin/windows/contrib/2.14
> Warning: unable to access index for repository
> http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.14
> Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type
> = type) : 
>   no packages were specified
> In addition: Warning message:
> In open.connection(con, "r") :
>   unable to connect to 'cran.r-project.org' on port 80.

  Given that you are unable to reach either repository,
and that both are mainstream (and that I have no trouble
connecting to the CSIRO repository or seeing the other one),
I suspect you are having network and/or firewall troubles.
I believe there is some Windows-specific troubleshooting advice
in the R for Windows FAQ ...

R-help at r-project.org mailing list
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