[Rd] typo in browse.pkgs

From: G. Sawitzki <gs_at_statlab.uni-heidelberg.de>
Date: Thu 03 Nov 2005 - 15:24:56 GMT

See below.

  gs.

Error in browse.pkgs("CRAN", "binary") : couldn't find function "avaliable.packages"

Your version of R is up to date
> browse.pkgs

function (repos = getOption("repos"), contriburl = contrib.url(repos,

     type), type = getOption("pkgType")) {

     if (.Platform$GUI != "AQUA")
         stop("this function is intended to work with the Aqua GUI")
     x <- installed.packages()
     i.pkgs <- as.character(x[, 1])
     i.vers <- as.character(x[, 3])
     label <- paste("(", type, ") @", contriburl)
     y <- avaliable.packages(contriburl = contriburl)
     c.pkgs <- as.character(y[, 1])
     c.vers <- as.character(y[, 2])
     idx <- match(i.pkgs, c.pkgs)
     vers2 <- character(length(c.pkgs))
     xx <- idx[which(!is.na(idx))]
     vers2[xx] <- i.vers[which(!is.na(idx))]
     i.vers <- vers2
     want.update <- rep(FALSE, length(i.vers))
     .Internal(pkgbrowser(c.pkgs, c.vers, i.vers, label, want.update))
}
<environment: namespace:utils>
>


R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Nov 04 02:31:47 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:33 GMT