You might have no internet connection or as in my case you have one, but the firewall prevents anything beside Windows IE to access the net. Grrr.
Ok. It takes more time, but is possible. Lets have an example:
Installing the package ‘gam’ for R-2.9 on Windows being in Norway (with cran.ii.uib.no as the nearest and fastest “Comprehensive R Archive Network”.
- Find another place with internet connection or as in my case, the browser works, so use the browser.
- Find the package on the repository corresponding to your operating system and your version of R in our above example here
- klick on the link gam_1.0.zip, download it and save it (e.g. using an USB disk). Remember the path to the file (in our example in the folder H:/DATA/).
- Open R and write
install.packages("H:/DATA/gam_1.0.zip", repos=NULL)
at the command line.
Thats it.