[R] Error in update() when repositories is specified.

Andy Bunn abunn at whrc.org
Tue Nov 9 16:08:10 CET 2004


Ooops. Make that subject line 'upgrade', not 'update!' Sorry. -AB

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of Andy Bunn
> Sent: Tuesday, November 09, 2004 9:23 AM
> To: R-Help
> Subject: [R] Error in update() when repositories is specified.
>
>
> How can I specify the repositories for upgrade()?
>
> > x <- packageStatus(repositories =
> "http://cran.us.r-project.org//bin/windows/contrib/2.0")
> > upgrade(x, ask = FALSE)
> Error in update[, 3] : incorrect number of dimensions
>
> x, the object of class "packageStatus", prints and summarizes fine. I also
> ran install.packages() without incident.
> > install.packages(x$avail$Package[x$avail$Status == "not installed"])
>
> I get the same error if I specify the repositories with getOption:
> > getOption("repositories")()[[1]]
> [1] "http://cran.us.r-project.org//bin/windows/contrib/2.0"
> > x <- packageStatus(repositories = getOption("repositories")()[[1]])
> > upgrade(x, ask = FALSE)
> Error in update[, 3] : incorrect number of dimensions
>
> However, upgrade behaves if I don't specify "repositories" in
> packageStatus() things work as expected.
> > x <- packageStatus()
> > upgrade(x)
>
> I imagine that I am being a dimwit as per usual. Can anybody help?
>
> -Andy
>
> ______________________________________________
> R-help at 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
>




More information about the R-help mailing list