Bug 16699 - Project manager
Summary: Project manager
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Mac GUI / Mac specific (show other bugs)
Version: R 3.2.3
Hardware: x86_64/x64/amd64 (64-bit) Other
: P5 normal
Assignee: Simon Urbanek
URL:
Depends on:
Blocks:
 
Reported: 2016-02-04 23:13 UTC by Sterling Butters
Modified: 2016-02-14 09:05 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sterling Butters 2016-02-04 23:13:20 UTC
Mac Package Manager GUI Error for R 3.2.3, OS X 10.11.3:

Error in package.manager() : invalid arguments (length mismatch)
Comment 1 Duncan Murdoch 2016-02-06 13:54:38 UTC
Please describe what you did to trigger this error message.
Comment 2 Sterling Butters 2016-02-12 18:47:48 UTC
In the menubar at the top:
Packages & Data > Package Manager > "Select"
Comment 3 Peter Dalgaard 2016-02-12 19:03:46 UTC
That's not useful. Try this on the command line

> debug(package.manager)
> package.manager()

Single step until the breaking point. Repeat and print relevant variables along the way.
Comment 4 Sterling Butters 2016-02-14 04:36:35 UTC
This is output from the command line:

debugging in: package.manager()
debug: {
    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, quiet = TRUE), "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)
    }
}
Browse[2]>
Comment 5 Peter Dalgaard 2016-02-14 09:05:24 UTC
Then follow the rest of the instructions! (I.e., learn to _use_ the debugger)

Press return to step through the code. 

Enter name of variables to see their value.