See below. gs. Error in browse.pkgs("CRAN", "binary") : couldn't find function "avaliable.packages" Your version of R is up to date> browse.pkgsfunction (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>>
I believe you will find this is already fixed in R-patched and R-devel as the logs say (2005-10-07) r35790 Fixed a typo in aqua R code and it seems to be that line. On Thu, 3 Nov 2005, G. Sawitzki wrote:> > 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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
At 15:44 +0000 03.11.2005, Prof Brian Ripley wrote:>I believe you will find this is already fixed in R-patched and >R-devel as the logs say (2005-10-07) > >r35790 Fixed a typo in aqua R code > >and it seems to be that line.... but possibly it did not find its way into the version "R for Mac OS X 2.2.0 released on 2005/10/18" .... g.
On Thu, 3 Nov 2005, G. Sawitzki wrote:> At 15:44 +0000 03.11.2005, Prof Brian Ripley wrote: >> I believe you will find this is already fixed in R-patched and R-devel as >> the logs say (2005-10-07) >> >> r35790 Fixed a typo in aqua R code >> >> and it seems to be that line. > > ... but possibly it did not find its way into the version "R for Mac OS X > 2.2.0 released on 2005/10/18" ....R 2.2.0 was released on 2005-10-06, so it postdates that. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
G?nther, On Nov 3, 2005, at 10:24 AM, G. Sawitzki wrote:> See below. > > gs. > > Error in browse.pkgs("CRAN", "binary") : couldn't find function > "avaliable.packages"You seem to have an old version of the R.app, because the R 2.2.0 release R GUI has a work-around for that problem. Please update your R.app either from the R release or the nightly builds page: http://research.att.com/~urbanek/R/ As Brian was saying, the error was fixed in R immediately after the release - strangely enough no one reported the error during the alpha and beta cycle although both the GUI and R binaries were available for download :(. Cheers, Simon