search for: suppresspackagestartupmessag

Displaying 20 results from an estimated 45 matches for "suppresspackagestartupmessag".

2012 Sep 02
5
[newbie] scripting remote check for R package
summary: e.g., how to replace '<query R for package=package_name>' in the following: for RSERVER in 'foo' 'bar' 'baz' ; do ssh ${RSERVER} '<query R for package=package_name>' done or is there a better way to script checking for an R package? details: For my work I need a few non-standard R packages. I do that work on 2 clusters. One uses
2012 May 15
1
KEGGSOAP installation error
...kage, "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: tryCatchList(expr, classes, parentenv, handlers) 23: tryCatch(expr, error = function(e) { call...
2013 Jun 07
1
cannot load pbdMPI package after compilation
...;- 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: tryCatchList(expr, classes, parentenv, handlers) 20: tryCatch(expr, error = function(e) { call...
2018 Apr 18
2
odd assignInNamespace / setGeneric interaction
...ith save="no".. utils::assignInNamespace(".qOrig", base::q, "base") utils::assignInNamespace("q", function(save = "no", ...) base:::.qOrig(save = save, ...), "base") This worked fine until he decide to load the distr package: > suppressPackageStartupMessages(library(distr)) Error: package or namespace load failed for ?distr? in loadNamespace(name): there is no package called ?.GlobalEnv? distr calls setGeneric("q"), which indirectly causes the environment of base::q, .GlobalEnv, to be loaded as a namespace, causing the error. Giving h...
2016 Apr 09
1
Quantmod abline and axis configuration
...nt to add two ablines like this abline(h=2400, lty=3, col="lightgrey") abline(h=400, lty=3, col="lightgrey") But doesnt wotk. I alo try to set ylim from 0 to max "Foa"+1000 but I?m not able ?Is it posible? require(latticeExtra) require(ggplot2) require(reshape2) suppressPackageStartupMessages(require(googleVis)) require(quantmod) require(PerformanceAnalytics) require(xtsExtra) require(rCharts) Foa<-as.xts(read.zoo("fa.txt",col.names=c("Date","LAST"), sep="",dec=",", format="%d/%m/%Y")) chartSeries(Foa,theme="whi...
2024 Mar 12
1
Spurious warning in as.data.frame.factor()
Hi, The acrobatics that as.data.frame.factor() is going thru in order to recognize a direct call don't play nice if as.data.frame() is an S4 generic: ??? df <- as.data.frame(factor(11:12)) ??? suppressPackageStartupMessages(library(BiocGenerics)) ??? isGeneric("as.data.frame") ??? # [1] TRUE ??? df <- as.data.frame(factor(11:12)) ??? # Warning message: ??? # In as.data.frame.factor(factor(11:12)) : ??? # ? Direct call of 'as.data.frame.factor()' is deprecated. Use 'as.data.frame.vect...
2014 Sep 21
1
Bug in new behaviour for all.equal and environments?
....list -> all.equal -> all.equal.envRefClass Execution halted Although I don't know if it's helpful -- it appears that packages that include some S4 machinery will effect the outcome of this error, e.g. if we load 'Biobase' first: kevin:~$ R --vanilla --slave -e "suppressPackageStartupMessages(library(Biobase)); all.equal(baseenv(), baseenv())" Error in target$getClass() : object '.refClassDef' not found Calls: all.equal ... all.equal.list -> all.equal -> all.equal.envRefClass -> <Anonymous> Execution halted We were bumping into an error with th...
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.,
2011 Jan 27
0
Problems installing gputools
...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(expr, classes, parentenv, handlers) 15: tryCatch(expr, error = function(e) { call <- c...
2024 Mar 13
1
Spurious warning in as.data.frame.factor()
...0700 Herv? Pag?s <hpages.on.github at gmail.com> ?????: > The acrobatics that as.data.frame.factor() is going thru in order to > recognize a direct call don't play nice if as.data.frame() is an S4 > generic: > > ??? df <- as.data.frame(factor(11:12)) > > ??? suppressPackageStartupMessages(library(BiocGenerics)) > ??? isGeneric("as.data.frame") > ??? # [1] TRUE > > ??? df <- as.data.frame(factor(11:12)) > ??? # Warning message: > ??? # In as.data.frame.factor(factor(11:12)) : > ??? # ? Direct call of 'as.data.frame.factor()' is depre...
2010 Jun 07
1
Patch for legend.position={left,top,bottom} in ggplot2
Hi Hadley and everyone, here's a patch for ggplot2 that fixes the behavior of opts(legend.position={left,top,bottom}). If you try the following code in an unmodified ggplot2 options(warn = -1) suppressPackageStartupMessages(library("ggplot2")) data <- data.frame( x = c(1, 2, 3, 4, 5, 6), y = c(2, 3, 4, 3, 4, 5), colour = c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE)) ggplot(data, aes(x = x, y = y, colour = colour)) + geom_line() + opts(title = "title", legend.position = "right&...
2012 Feb 06
1
Segfault on ".C" registration via R_CMethodDef according to 'Writing R Extensions'.
...kage, "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(expr, classes, parentenv, handlers) 15: tryCatch(expr, error = function(e) { call...
2023 Jul 26
1
Downloading a directory of text files into R
...CRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Hello, The following code downloads all files in the posted link. suppressPackageStartupMessages({ library(rvest) }) # destination directory, change this at will dest_dir <- "~/Temp" # first get the two subfolders from the Data webpage link <- "http://home.brisnet.org.au/~bgreen/Data/" page <- read_html(link) page %>% html_elements("a") %>...
2018 Apr 19
2
odd assignInNamespace / setGeneric interaction
...base::q, "base") >> utils::assignInNamespace("q", function(save = "no", ...) >> base:::.qOrig(save = save, ...), "base") >> >> This worked fine until he decide to load the distr package: >> >> > suppressPackageStartupMessages(library(distr)) >> Error: package or namespace load failed for ?distr? in >> loadNamespace(name): >> there is no package called ?.GlobalEnv? >> >> distr calls setGeneric("q"), which indirectly causes the environment >> of base...
2017 Jul 31
0
force promises inside lapply
...te. E.g., library() has the 'character.only' argument; if TRUE >> then the package argument is treated as an ordinary argument and not passed >> through substitute(). >> >> myLoader <- function(package, quietly = TRUE) { >> wrapper <- if (quietly) suppressPackageStartupMessages else `{` >> wrapper(library(package = package, character.only=TRUE)) >> } >> >> > lapply(c("MASS","boot"), myLoader, quietly=FALSE) >> [[1]] >> [1] "MASS" "splines" "pryr" "stats"...
2023 Nov 04
2
Sum data according to date in sequence
...te EnergykWh #> 1 1/14/2016 11.98569 #> 2 1/15/2016 32.56938 #> 3 1/16/2016 21.29181 #> 4 1/17/2016 22.88083 #> 5 1/18/2016 9.05750 2. Package dplyr. First column date is coerced from class "character" to class "Date". Then the grouped sums are computed. suppressPackageStartupMessages( library(dplyr) ) dt1 %>% mutate(date = as.Date(date, "%m/%d/%Y")) %>% summarise(EnergykWh = sum(EnergykWh), .by = date) #> date EnergykWh #> 1 2016-01-14 11.98569 #> 2 2016-01-15 32.56938 #> 3 2016-01-16 21.29181 #> 4 2016-01-17 22.88083 #>...
2018 Apr 18
0
odd assignInNamespace / setGeneric interaction
...utils::assignInNamespace(".qOrig", base::q, "base") > utils::assignInNamespace("q", function(save = "no", ...) > base:::.qOrig(save = save, ...), "base") > > This worked fine until he decide to load the distr package: > > > suppressPackageStartupMessages(library(distr)) > Error: package or namespace load failed for ?distr? in > loadNamespace(name): > there is no package called ?.GlobalEnv? > > distr calls setGeneric("q"), which indirectly causes the environment > of base::q, .GlobalEnv, to be loaded as a namespace...
2023 May 16
0
Newbie: Drawing fitted lines on subset of data
...ng guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > Hello, > > Try the following. > In the 2nd geom_smooth you need a subset of the data not of just one of > its columns. > > > > suppressPackageStartupMessages({ > ? library(tsibble) > ? library(dplyr) > ? library(ggplot2) > ? library(lubridate) > }) > > ggplot(data = w, mapping = aes(date, value)) + > ? geom_smooth(formula = y ~ x, method = "lm", se = FALSE) + > ? geom_point() + > ? geom_smooth( > ???...
2010 Nov 01
1
How to stop showing messages while loading package?
Hi, is there any way to stop showing all messages which sometimes come while loading a packages? For example let say I want to load fBasics package. So I get following notices: > library(fBasics) Loading required package: MASS Loading required package: timeDate Loading required package: timeSeries Attaching package: 'timeSeries' The following object(s) are masked from
2011 Dec 21
1
Is there a way force hiding of all messages when calling library()?
For example, if I call "library(spam)", I would get messages like this Package 'spam' is loaded. Spam version 0.27-0 (2011-08-17). Type demo( spam) for some demos, help( Spam) for an overview of this package. Help for individual functions is optained by adding the suffix '.spam' to the function name, e.g. 'help(chol.spam)'. Attaching package: ?spam? The