search for: packagenotfounderror

Displaying 8 results from an estimated 8 matches for "packagenotfounderror".

2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
...kgs <- .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(packageNotFoundError(package, lib.loc, sys.call())) + } txt <- if(length(lib.loc)) gettextf("there is no package called %s", sQuote(package)) else Thank you! Best regards, Marcel -- Marcel Ramos Bioconductor Core Team Roswell Park...
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
..., library()'s main/intended use is interactive and there are other functions available for programmatic use cases. Now that library() signals a structured 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 y...
2019 Jun 21
0
[External] Suggested Patch: Library returns matching installed packages when typo present
...one has to catch both the error and the warning, or suppress the warning, in order to handle the error programmatically. Now that library() signals a structured 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 y...
2019 Jun 21
0
Suggested Patch: Library returns matching installed packages when typo present
...teractive and > there are other functions available for programmatic use cases. > > > > Now that library() signals a structured 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)))) { >...
2018 Sep 18
2
Suggested Patch: Adding commas to list of packages after R CMD check
Dear R-devs, Scenario: When checking a package via `R CMD check package_tar.ball`, required / suggested packages may be missing. R subsequently returns a list of packages that are missing (delimited by spaces). Example: ``` R CMD check glmSparseNet_0.99.13.tar.gz * using log directory '/home/ubuntu/Bioconductor/glmSparseNet.Rcheck' * using R Under development (unstable) (2018-06-06
2019 Apr 26
0
R 3.6.0 is released
...create structured error and warning objects. .Deprecated() now signals a warning of class "deprecatedWarning", and .Defunct() now signals an error of class "defunctError". * Many 'package not found' errors are now signaled as errors of class "packageNotFoundError". * As an experimental feature, when loadNamespace() fails because the requested package is not available the error is initially signaled with a retry_loadNamespace restart available. This allows a calling handler to try to install the package and continue. *...
2019 Apr 26
0
R 3.6.0 is released
...create structured error and warning objects. .Deprecated() now signals a warning of class "deprecatedWarning", and .Defunct() now signals an error of class "defunctError". * Many 'package not found' errors are now signaled as errors of class "packageNotFoundError". * As an experimental feature, when loadNamespace() fails because the requested package is not available the error is initially signaled with a retry_loadNamespace restart available. This allows a calling handler to try to install the package and continue. *...
2019 Apr 26
0
R 3.6.0 is released
...create structured error and warning objects. .Deprecated() now signals a warning of class "deprecatedWarning", and .Defunct() now signals an error of class "defunctError". * Many 'package not found' errors are now signaled as errors of class "packageNotFoundError". * As an experimental feature, when loadNamespace() fails because the requested package is not available the error is initially signaled with a retry_loadNamespace restart available. This allows a calling handler to try to install the package and continue. *...