5

I am trying to download the zoo package to work with time series using:

install.packages("zoo")

but I get the following message:

--- Please select a CRAN mirror for use in this session ---  
Warning: unable to access index for repository http://cran.cnr.Berkeley.edu/bin/windows/contrib/2.12 
Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.12  
Warning messages:  
1: In open.connection(con, "r") :
  unable to connect to 'cran.r-project.org' on port 80.  
2: In getDependencies(pkgs, dependencies, available, lib) :
  package ‘zoo’ is not available  

I tried several different mirrors and I keep getting the same error... Is zoo just not available in most mirrors or is something going wrong?

Marek
  • 49,472
  • 15
  • 99
  • 121
sbg
  • 1,772
  • 8
  • 27
  • 45

1 Answers1

11

Please see FAQ 2.19. Or, alternatively, a quick search for "unable to connect to 'cran.r-project.org' on port 80" on rseek.org.

Reading the FAQ and doing a search for the error will usually help you resolve most issues.

Joshua Ulrich
  • 173,410
  • 32
  • 338
  • 418
  • See also here: http://stackoverflow.com/questions/4832560/how-do-i-tell-the-r-interpreter-how-to-use-the-proxy-server/18375181#18375181 – Jonas Tundo Aug 22 '13 at 08:29