search for: allpkg

Displaying 5 results from an estimated 5 matches for "allpkg".

Did you mean: allpkgs
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
...<- find.package(package, lib.loc, quiet = TRUE, verbose = verbose) if(length(pkgpath) == 0L) { - if(length(lib.loc) && !logical.return) + if(length(lib.loc) && !logical.return) { + allpkgs <- .packages(TRUE, lib.loc) + if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) + warning(sprintf("Perhaps you meant %s ?", + sQuote(allpkgs[w])), call. = FALSE, domain = NA) stop(pa...
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
...d error there are other options. One possibility, at least as an interim, is to define a conditionMessage method, e.g. as conditionMessage.packageNotFoundError <- function(c) { lib.loc <- c$lib.loc msg <- c$message package <- c$package if(length(lib.loc)) { allpkgs <- .packages(TRUE, lib.loc) if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) { msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w])) return(paste(msg, msg2, sep = "\n")) } } msg } This is somethi...
2019 Jun 21
0
[External] Suggested Patch: Library returns matching installed packages when typo present
...d error there are other options. One possibility, at least as an interim, is to define a conditionMessage method, e.g. as conditionMessage.packageNotFoundError <- function(c) { lib.loc <- c$lib.loc msg <- c$message package <- c$package if(length(lib.loc)) { allpkgs <- .packages(TRUE, lib.loc) if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) { msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w])) return(paste(msg, msg2, sep = "\n")) } } msg } This is somethi...
2019 Jun 21
0
Suggested Patch: Library returns matching installed packages when typo present
...ssibility, at least as an interim, is to define a > conditionMessage method, e.g. as > > conditionMessage.packageNotFoundError <- function(c) { > lib.loc <- c$lib.loc > msg <- c$message > package <- c$package > if(length(lib.loc)) { > allpkgs <- .packages(TRUE, lib.loc) > if (!is.na(w <- match(tolower(package), tolower(allpkgs)))) { > msg2 <- sprintf("Perhaps you meant %s ?", sQuote(allpkgs[w])) > return(paste(msg, msg2, sep = "\n")) > } > } &g...
2008 Feb 18
2
Windows-GUI: "Install Packages from local zip files" and dependencies
Hi, When using the "Packages --> Install packages from local zip files" menu item in the windows-gui: 1) is that supposed to automatically pull in dependencies (in that case I have to fix something in my package). 2) If that's not the default: is there a way to make it so? Thanks, Joh