Skip to content

Error in update() when repositories is specified.

3 messages · Andy Bunn, Brian Ripley

#
How can I specify the repositories for upgrade()?
"http://cran.us.r-project.org//bin/windows/contrib/2.0")
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.
I get the same error if I specify the repositories with getOption:
[1] "http://cran.us.r-project.org//bin/windows/contrib/2.0"
Error in update[, 3] : incorrect number of dimensions

However, upgrade behaves if I don't specify "repositories" in
packageStatus() things work as expected.
I imagine that I am being a dimwit as per usual. Can anybody help?

-Andy
#
Ooops. Make that subject line 'upgrade', not 'update!' Sorry. -AB
#
I don't think that has ever been tested under Windows: until recently
packageStatus did not work under Windows at all.

The problem seems to be in ask=FALSE, which looks completely broken.
ask=TRUE seems to work.  This was true of Unix, 1.9.1 as well so I guess 
no one ever uses it ....
On Tue, 9 Nov 2004, Andy Bunn wrote:

            
You will find it easier to use contrib.url() here.