[R-SIG-Mac] OS X R console Package Manager error

James Eales jeales at gmail.com
Wed Apr 16 12:08:35 CEST 2014


Hello,
I had exactly the same trouble
Try pasting this into the console then click "Package Manager" again

package.manager <- function () 
{
    if (.Platform$GUI != "AQUA") 
        stop("this function is intended to work with the Aqua GUI")
    loaded.pkgs <- .packages()
    x <- library()
    x <- x$results[x$results[, 1] != "base", ]
    pkgs <- x[, 1]
    pkgs.desc <- x[, 3]
    is.loaded <- !is.na(match(pkgs, loaded.pkgs))
    pkgs.status <- character(length(is.loaded))
    pkgs.status[which(is.loaded)] <- "loaded"
    pkgs.status[which(!is.loaded)] <- " "
    pkgs.url <- file.path(find.package(pkgs), "html", "00Index.html")
    load.idx <- .Call("pkgmanager", is.loaded, pkgs, pkgs.desc, 
        pkgs.url)
    toload <- which(load.idx & !is.loaded)
    tounload <- which(is.loaded & !load.idx)
    for (i in tounload) {
        cat("unloading package:", pkgs[i], "\n")
        do.call("detach", list(paste("package", pkgs[i], sep = ":")))
    }
    for (i in toload) {
        cat("loading package:", pkgs[i], "\n")
        library(pkgs[i], character.only = TRUE)
    }
}

On Wednesday, 16 April 2014 10:20:49 UTC+1, David Iles wrote:
>
> Hi Folks, 
>
> I updated my version of R yesterday using the R-3.1.0-snowleopard.pkg 
> downloaded from CRAN. I tried to open Package Manager, but it failed to 
> open, with the following message.... 
>
> Error: '.find.package' is defunct. 
> Use 'find.package' instead. 
> See help("Defunct") 
>
> I deleted R.app and the R frameworks folder, and re-installed R from 
> scratch, but the error persists. Clearly I have missed something from 
> previous installations that is still lurking somewhere on my computer. Can 
> anyone point me to what I need to delete/edit/update to correct this issue? 
>
> Many thanks, 
>
> Dr David Iles 
> Visiting Research Fellow 
> School of Biology 
> University of Leeds 
> Leeds LS2 9JT 
>
> > sessionInfo() 
> R version 3.1.0 (2014-04-10) 
> Platform: x86_64-apple-darwin10.8.0 (64-bit) 
>
> locale: 
> [1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8 
>
> attached base packages: 
> [1] stats     graphics  grDevices utils     datasets  methods   base 
> > 
>
>         [[alternative HTML version deleted]] 
>
> _______________________________________________ 
> R-SIG-Mac mailing list 
> R-SI... at r-project.org <javascript:> 
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20140416/c878422b/attachment-0002.html>


More information about the R-SIG-Mac mailing list