Re: [R] problem with mirror selection

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Tue 31 Jan 2006 - 00:16:17 EST


You didn't say if you did the selection from the menu or the command line...

In any case, the menu `Packages' -> `Set CRAN Mirror...' runs the command chooseCRANmirror(), which looks like

> chooseCRANmirror

function (graphics = TRUE)
{

    if (!interactive())

        stop("cannot choose a CRAN mirror non-interactively")     m <- read.csv(file.path(R.home("doc"), "CRAN_mirrors.csv"),

        as.is = TRUE)
    res <- menu(m[, 1], graphics, "CRAN mirror")     if (res > 0) {

        URL <- m[res, "URL"]
        repos <- getOption("repos")
        repos["CRAN"] <- gsub("/$", "", URL[1])
        options(repos = repos)

    }
    invisible()
}
<environment: namespace:utils>

As you can see, it simply sets the repos option, and never use the net. So, exactly how did you get the problem you described?

Andy

From: Erin Hodgess
>
> Dear R People:
>
> I'm having trouble with selecting a mirror to download packages.
>
> When I select the location, R just sits. When I try to cancel
> the program, it never quits.
>
> Has anyone else run into this, please? It only happens on my
> laptop, not my desktop. My inclination is to say that it might be
> a problem with a firewall, but I thought I would check here as
> well.
>
>
>
> R Version 2.2.1 Windows.
>
> Thanks in advance!
>
> Sincerely,
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: hodgess@gator.uhd.edu
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Jan 31 00:23:26 2006

This archive was generated by hypermail 2.1.8 : Tue 31 Jan 2006 - 02:21:47 EST