[R] problem with packages

Duncan Murdoch murdoch.duncan at gmail.com
Tue Jan 11 09:56:56 CET 2011


On 11-01-10 5:43 PM, R Heberto Ghezzo, Dr wrote:
> Hello, I am on a laptop with Win7, running R-2.12.1
> if I click on Packages/InstallPackages I get :
>
>> utils:::menuInstallPkgs()
> Warning: unable to access index for repository http://cran.skazkaforyou.com/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
> Error in install.packages(NULL, .libPaths()[1L], dependencies = NA, type = type) :
>    no packages were specified
>>
> if I try update packages :
>> update.packages(ask='graphics')
> Warning: unable to access index for repository http://cran.skazkaforyou.com/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
>>
> My profile.site file is :
> # Things you might want to change
> # options(papersize="a4")
> # options(editor="notepad")
> # options(pager="internal")
> # set the default help type
> # options(help_type="text")
> # options(help_type="html")
> # set a CRAN mirror
>   local({r<- getOption("repos")
>         r["CRAN"]<- "http://cran.skazkaforyou.com"
>         options(repos=r)})
> # set library paths
>   aaa<- strsplit(R.home(),"R-")[[1]][1]
> .libPaths(c(paste(aaa,"cran",sep=""),paste(aaa,"Others",sep="")))
> #  set for 'jags' , 'WinBUGS' , 'Sweave' , 'EBImage' , 'JGR'
>   aa<- strsplit(R.home(),"R")[[1]][1]
> local({
>   Sys.setenv("JAGS_HOME"=paste(aa,"R/JAGS-2.2.0",sep=""))
>   Sys.setenv("GTK_BASEPATH"=paste(aa,"R/GTK",sep=""))
>   Sys.setenv("R_HOME"=paste(aa,"R/R-2.12.1",sep=""))
>   Sys.setenv("R_LIBS"=paste(aa,"R/Cran",sep=""))
>   Sys.setenv("DYLD_LIBRARY_PATH"=paste(aa,"R/R-2.12.1/bin/i386",sep=""))
>   PathNew<- paste(aa,"R/GTK/bin;",aa,"R/ImageMagick;",Sys.getenv("PATH"),";",aa,"PortableUSB/PortableApps/MikeTex/miktex/bin",sep="")
>   Sys.setenv("DirWinBugs"=paste(aa,"PortableUSB/PortableApps/WinBUGS14",sep=""))
>   Sys.setenv("PATH"=PathNew)
> #
>   })
>
>
> Any ideas what can be wrong?

Your system can't get through to those two web sites, probably because 
you have a firewall blocking something, or need to use a proxy.  You 
might try running

setInternet2()

first, and R will use the Internet Explorer proxy settings, assuming IE 
can get through to those sites.  If it can't, then you've got to fix 
your Internet connection.

Duncan Murdoch

> Thanks
>
> R.Heberto Ghezzo Ph.D.
> Montreal - Canada
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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