Displaying 20 results from an estimated 29 matches for "packagestartupmessage".
2015 May 09
1
PATCH: library(..., quietly=TRUE) still outputs "Loading required package: ..." (forgot to pass down 'quietly')
...e: <other pkg>
in some cases, e.g.
> library("R.utils", quietly=TRUE)
Loading required package: R.methodsS3
[...]
I traced this to base:::.getRequiredPackages2(), which forgets to pass
'quietly' to an internal library() call:
if (!attached) {
if (!quietly)
packageStartupMessage(gettextf("Loading required package: %s",
pkg), domain = NA)
library(pkg, character.only = TRUE, logical.return = TRUE,
lib.loc = lib.loc) || stop(gettextf("package %s could not be loaded",
sQuote(pkg)), call. = FALSE, domain = NA)
}
It's from...
2020 Oct 11
3
Installing bioconduction packages in connection with loading an R package
...me, pkgname) {
## package startup check
toinstall=c(
"graph",
"Rgraphviz",
"RBGL"
)
already_installed <- sapply(toinstall, function(pkg)
requireNamespace(pkg, quietly=TRUE))
if (any(!already_installed)){
packageStartupMessage("Need to install the following package(s): ",
toString(toinstall[!already_installed]), "\n")
}
## install if needed
if(!base::all(already_installed)){
if (!requireNamespace("BiocManager", quietly=TRUE))
ins...
2012 Apr 07
4
Display instruction text on package load
I'm currently working on a new package for R that interfaces with an API.
Most of the package's functionality requires users to supply an access key
that allows the package to work with the API. I want to display text
immediately upon loading the package that instructs/reminds users to enter
their access key before attempting to do anything (as the package won't
really work without
2019 Jun 21
0
Suggested Patch: Library returns matching installed packages when typo present
...g default condition handlers. This would allow
> the condition to be re-signaled with a custom class and then having
> a custom conditionMessage method is less likely to cause conflicts.
Is it correct that you are proposing something that allows us to do:
registerDefaultConditionHandlers(
packageStartupMessage = function(c) {
## Do something with condition 'c'
...
## Suppress futher processing
invokeRestart("muffleMessage")
}
)
at the core, which avoids having us to wrap up calls in
withCallingHandlers() at top-level calls, e.g.
> withCallingHandlers({
library(&...
2019 Jun 21
2
Suggested Patch: Library returns matching installed packages when typo present
Hi Luke,
Thank you for your response.
On 6/21/19 10:56 AM, Tierney, Luke wrote:
Thanks for the suggestion. However I don't think it is the right way
to go. I also don't care for what install.packages() does. Signaling a
warning and then an error means someone has to catch both the error
and the warning, or suppress the warning, in order to handle the error
programmatically.
I do care
2012 May 15
1
KEGGSOAP installation error
...package, c(which.lib.loc, lib.loc))
dataPath <- file.path(which.lib.loc, package, "data") env <-
attachNamespace(ns, pos = pos, dataPath = dataPath, deps)})
17: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return =
TRUE)
18: withCallingHandlers(expr, packageStartupMessage = function(c)
invokeRestart("muffleMessage"))
19: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
character.only = TRUE, logical.return = TRUE))
20: doTryCatch(return(expr), name, parentenv, handler)
21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
22: tryCatchL...
2013 Jun 07
1
cannot load pbdMPI package after compilation
...tructure(msg, class = "try-error", condition = e))})
13: try({ ns <- loadNamespace(package, c(which.lib.loc, lib.loc))
env <- attachNamespace(ns, pos = pos, deps)})
14: library(pkg_name, lib.loc = lib, character.only = TRUE,
logical.return = TRUE)
15: withCallingHandlers(expr, packageStartupMessage = function(c)
invokeRestart("muffleMessage"))
16: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
character.only = TRUE, logical.return = TRUE))
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchL...
2007 Feb 20
1
Custom per-package options passed down via library() ?
I want to load an in-house library 'differently' in a particular context and,
to achieve this, would like to govern the behaviour of its .onLoad()
function.
In a related context, Frank Harrell and I have been wondering on and off
about how to tell Hmisc to be less verbose in certain situations. He
achieves this by placing information in a custom field in options().
I could do the same
2011 Jan 27
0
Problems installing gputools
...hich.lib.loc, lib.loc),
keep.source = keep.source) dataPath <- file.path(which.lib.loc, package,
"data") env <- attachNamespace(ns, pos = pos, dataPath = dataPath, deps)})
9: library(pkg_name, lib.loc = lib, character.only = TRUE,
logical.return = TRUE)
10: withCallingHandlers(expr, packageStartupMessage = function(c)
invokeRestart("muffleMessage"))
11: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
character.only = TRUE, logical.return = TRUE))
12: doTryCatch(return(expr), name, parentenv, handler)
13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
14: tryCatchList(...
2012 Feb 06
1
Segfault on ".C" registration via R_CMethodDef according to 'Writing R Extensions'.
...package, c(which.lib.loc, lib.loc)) dataPath <- file.path(which.lib.loc, package, "data") env <- attachNamespace(ns, pos = pos, dataPath = dataPath, deps)})
9: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE)
10: withCallingHandlers(expr, packageStartupMessage = function(c) invokeRestart("muffleMessage"))
11: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE))
12: doTryCatch(return(expr), name, parentenv, handler)
13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
14: tryCatchL...
2024 May 08
1
Compilation problems with R4.4.0
...try-error", condition = e))})
12: try(sys.source(codeFile, env, keep.source = keep.source, keep.parse.data = keep.parse.data))
13: loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE)
14: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
15: suppressPackageStartupMessages(loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE))
16: code2LazyLoadDB(package, lib.loc = lib.loc, keep.source = keep...
2018 Mar 04
2
Random Seed Location
...ctive() || stats::runif(1) > 0.1)
return()
tips <- c("Need help? Try the ggplot2 mailing list:
http://groups.google.com/group/ggplot2.",
"Find out what's changed in ggplot2 at
http://github.com/tidyverse/ggplot2/releases.",
"Use suppressPackageStartupMessages() to eliminate package
startup messages.",
"Stackoverflow is a great place to get help:
http://stackoverflow.com/tags/ggplot2.",
"Need help getting started? Try the cookbook for R:
http://www.cookbook-r.com/Graphs/",
"Want to understand how all...
2018 Mar 04
0
Random Seed Location
...1)
> return()
> tips <- c("Need help? Try the ggplot2 mailing list:
> http://groups.google.com/group/ggplot2.",
> "Find out what's changed in ggplot2 at
> http://github.com/tidyverse/ggplot2/releases.",
> "Use suppressPackageStartupMessages() to eliminate package
> startup messages.",
> "Stackoverflow is a great place to get help:
> http://stackoverflow.com/tags/ggplot2.",
> "Need help getting started? Try the cookbook for R:
> http://www.cookbook-r.com/Graphs/",
>...
2024 May 03
1
grDevices segfault when building R4.4.0 on RHEL 9.1.
...-error", condition = e))})
12: try(sys.source(codeFile, env, keep.source = keep.source, keep.parse.data = keep.parse.data))
13: loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE)
14: withCallingHandlers(expr, packageStartupMessage = function(c) tryInvokeRestart("muffleMessage"))
15: suppressPackageStartupMessages(loadNamespace(package = package, lib.loc = lib.loc, keep.source = keep.source, keep.parse.data = keep.parse.data, partial = TRUE))
16: code2LazyLoadDB(package, lib.loc = lib.loc, keep.source = ke...
2011 Nov 07
1
close but no cigar
Hi Everyone: It turns out that there's still a small ( I hope ) problem.
I'm close but that only counts in horse shoes and hand grenades.
Here's my problem: When trying to load a package that I am writing, the
load is looking for the packageDescription function in the utils package
but not finding the utils package. I looked on cran and utils is not there
which makes me think that it
2018 Mar 05
1
Random Seed Location
...urn()
>> tips <- c("Need help? Try the ggplot2 mailing list:
>> http://groups.google.com/group/ggplot2.",
>> "Find out what's changed in ggplot2 at
>> http://github.com/tidyverse/ggplot2/releases.",
>> "Use suppressPackageStartupMessages() to eliminate package
>> startup messages.",
>> "Stackoverflow is a great place to get help:
>> http://stackoverflow.com/tags/ggplot2.",
>> "Need help getting started? Try the cookbook for R:
>> http://www.cookbook-r.com/Graphs/&...
2019 Jul 23
2
[External] Re: quiet namespace load is noisy
Dear Russ,
I had the same problem in my vignettes and setting both message and warning
to FALSE seems to remove all unwanted output:
```{r message=FALSE, warning=FALSE}
library("afex")
library("ggplot2")
library("cowplot")
theme_set(theme_grey())
```
Result:
https://cran.r-project.org/web/packages/afex/vignettes/afex_plot_introduction.html
Best,
Henrik
Am Di.,
2019 Jun 26
3
R-Forge > GitHub?
Whereas it is true that one has to contact GitHub to detach a GitHub
repository, it really is no problem (or at least was no problem in 2016). I
wanted to do so when I took over the maintainer role of LaplacesDemon which
only remained on GitHub as a fork on some other person's private account.
So I forked and then contacted GitHub support and simply asked them to
remove the "forked
2018 Mar 04
0
Random Seed Location
Thank you, everybody, who replied! I appreciate your valuable advise! I will move the location of the set.seed() command to after all packages have been installed and loaded.
Best regards,
Gary
Sent from my iPad
> On Mar 4, 2018, at 12:18 PM, Paul Gilbert <pgilbert902 at gmail.com> wrote:
>
> On Mon, Feb 26, 2018 at 3:25 PM, Gary Black <gwblack001 at sbcglobal.net>
>
2019 Jan 06
4
Failed to install RQuantLib in Ubuntu machine
...%s:\n %s",
sQuote(package), P, conditionMessage(e)) if (logical.return)
message(paste("Error:", msg), domain = NA) else stop(msg, call. = FALSE,
domain = NA)})*
* 8: library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return
= TRUE)*
* 9: withCallingHandlers(expr, packageStartupMessage = function(c)
invokeRestart("muffleMessage"))*
*10: suppressPackageStartupMessages(library(pkg_name, lib.loc = lib,
character.only = TRUE, logical.return = TRUE))*
*11: doTryCatch(return(expr), name, parentenv, handler)*
*12: tryCatchOne(expr, names, parentenv, handlers[[1L]])*
*13: t...