[Rd] error in install.packages() (PR#14042)
murdoch at stats.uwo.ca
Wed Nov 4 17:40:16 CET 2009
On 11/4/2009 11:05 AM, michael.m.spiegel at gmail.com wrote:
> Full_Name: Michael Spiegel
> Version: 2.10
> OS: Windows Vista
> Submission from: (NULL) (220.127.116.11)
> The following error is produced when attempting to call install.packages. Here
> is the results of the traceback:
> Error in f(res) : invalid subscript type 'list'
> 7: f(res)
> 6: available.packages(contriburl = contriburl, method = method)
> 5: .install.winbinary(pkgs = pkgs, lib = lib, contriburl = contriburl,
> method = method, available = available, destdir = destdir,
> dependencies = dependencies, ...)
> 4: install.packages(pkgs = c("OpenMx"), repos = repos)
> 3: eval.with.vis(expr, envir, enclos)
> 2: eval.with.vis(ei, envir)
> 1: source("http://openmx.psyc.virginia.edu/getOpenMx.R")
> I've tracked the error down to somewhere in available.packages defined in
> src\library\utils\R\packages.R. I am guessing that the error in version 2.10
> has something to do with the change: "available.packages() gains a 'filters'
> argument for specifying the filtering operations performed on the packages found
> in the repositories."
I can reproduce this, and yes, it is happening in one of the filters.
I'd guess it happens because your repository has only one entry (a
missed "drop=FALSE" somewhere maybe) or because the filter is finding no
matches. I'll track down the details and fix it.
Thanks for the report.
More information about the R-devel