Displaying 20 results from an estimated 400 matches similar to: "R: determine if `suppressMessages()` has been invoked"
2023 Feb 19
1
R: determine if `suppressMessages()` has been invoked
Hi all,
I would like to create a function that detects if suppressMessages has been invoked upon running that same function. I was looking through {https://cran.r-project.org/doc/manuals/r-release/R-ints.html}, but I haven't found an answer. I do not understand **how** suppressMessages works.
I have not received an answer on SO
2015 Sep 10
2
Using IDs to suppress specific messages and warnings
The suppressMessages and suppressWarnings functions currently suppress
all the message or warnings that are generated by the input
expression.
The ability to suppress only specific messages or warnings is
sometimes useful, particularly for cases like file import where there
are lots of things that can go wrong.
Suppressing only messages that match a regular expression has rightly
been rejected
2015 Sep 10
0
Using IDs to suppress specific messages and warnings
Conditions have classes and the condition system is designed around
the idea that classes would be used for this sort of thing. That is
already how tryCatch and withCallingHandlers discriminate the
conditions to handle.
Designing and implementing a condition class hierarchy to support this
is indeed the hard/tedious part.
Best,
luke
On Thu, 10 Sep 2015, Richard Cotton wrote:
> The
2011 Dec 05
1
RcppArmadillo compilation error: R CMD SHLIB returns status 1
Dear all,
running the example by D. Eddebuettel (http://dirk.eddelbuettel.com/blog/2011/04/23/) I get an error message. Specifically, the R code I was taking from the above example is
### BEGIN EXAMPLE ###
suppressMessages(require(RcppArmadillo))
suppressMessages(require(Rcpp))
suppressMessages(require(inline))
code <- '
arma::mat coeff = Rcpp::as<arma::mat>(a);
arma::mat
2017 Sep 14
1
Print All Warnings that Occurr in All Parallel Nodes
Dear R Users,
I have developed the following code for importing a series of zipped CSV by parallel computing.
My problems are that:
A) Some ZIP Files (Which contain CSVs inside) are corrupted, and cannot be opened.
B) After executing parRapply I can only see the last.warning variable error, for knowing which CSV have failed in each node, but I cannot see all warnings, only 1 at a time.
So:
*
2012 Mar 15
2
ggplot2: goem_smooth and suppress messages
Hi
When I run my script using ggplot and geom_smooth I get messages that I
would like to suppress:
p <- ggplot(dataSubset)
p <- p + aes(x = as.Date(factor(key),format="%Y%m%d")) + geom_line()
p <- p + geom_smooth(span=0.2,se=FALSE,size=0.7)
The messages look like this:
geom_smooth: method="auto" and size of largest group is <1000, so using
loess. Use 'method
2012 Jan 11
1
Silently loading and Depends: versus NAMESPACE imports
R CMD check really hates it when my .onLoad() function contains
suppressMessages(library(foo))
However, _and for non-public packages not going to CRAN_ I prefer doing this
over using explicit Depends or import statements in the NAMESPACE file as the
latter do not give me an ability to make the loading less verbose. With the
R universe of packages being as vast as at is, a simple (non-public)
2018 Jan 02
4
httr::content without message
Hi All:
I am using httr to download files form a service, in this case a .csv file. When I use httr::content on the result, I get a message. Since this will be in a package. I want to suppress the message, but haven't figured out how to do so.
The following should reproduce the result:
myURL <-
2011 Oct 05
3
suppressing stderr output from system() calls
Dear list,
I'm trying to suppress/redirect/squash the output from commands like install.packages, or download.file. The problem is that none of: sink(..., type="message"), sink(..., type="output"), capture.output, suppressMessages are quite doing the trick. Output gets written to the stderr stream, despite any combination of the above suppression commands.
According to
2008 Jan 11
1
How to disable output messages (prints or cats) from functions in R?
Hi everybody,
I have to use a function that shows an output message like "# nonzero
coefficients ..." followed with a lot of numbers depending on the input.
This is very annoying because I have to run that function several times
and I don't want to show this information.
What I want is to disable that display but I don't know how to do it.
I've tried it with
2010 Dec 16
1
Is there a join() function in R ? OR: simulating "Combining ggplot2 and Google Maps" by David Kahle
Hi everybody
Im on R version 2.11.1 on Mac OS X
I am working through David Kahle's example of using ggplot2 with Rgooglemaps
(found here:
https://github.com/hadley/ggplot2/wiki/Crime-in-Downtown-Houston,-Texas-:-Combining-ggplot2-and-Google-Maps).
Excellent page by the way. I have downloaded the data and the code and want
to learn how to do this by first simulating David's results and
2016 Jul 04
2
cat() in proc.time?
Does anyone know if there's a reason that proc.time() uses cat()
rather than message() to print the output when there has been an error
in the process of timing?
line 31 of time.R,
https://github.com/wch/r-source/blob/e5b21d0397c607883ff25cca379687b86933d730/src/library/base/R/time.R#L31
on.exit(cat("Timing stopped at:", ppt(proc.time() - time), "\n"))
This means that
2002 Nov 11
11
Shorewall Documentation in PDF format
Hey gang,
I was wondering if all that documentation could or has been put into
PDF format. I usually like to download documentation and read it while
I''m sitting comfortably at home and I don''t want to tie up the phone
line all night.
Thanks,
Nino
p.s. If so, please feel free to attach the PDF formatted document to my
e-mail ;-)
2018 Jul 12
1
Top level \Sexpr and R CMD check
On 12/07/2018 9:46 AM, G?bor Cs?rdi wrote:
> On Thu, Jul 12, 2018 at 2:30 PM G?bor Cs?rdi <csardi.gabor at gmail.com> wrote:
>>
>> On Thu, Jul 12, 2018 at 2:21 PM Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
>>> I think I found the bug. The tools::checkRd function only processes
>>> \Sexpr's with "stage=render". I think the author
2012 Jan 31
0
Error in linearHypothesis.mlm: The error SSP matrix is apparently of deficient rank
Hi,
I have encountered this error when attempting a One-way Repeated-measure ANOVA
with my data.
I have read the "Anova in car: SSPE apparently deficient rank" thread
by I'm not sure the within-subject interaction has more degrees of freedom
than subjects in my case.
I have prepared the following testing script:
rm(list = ls())
2012 Mar 09
2
How do I force confint() for glm() to be quiet?
I need confint() for glm() to supress the messages
"Waiting for profiling to be done..."
because they mess up the caching mechanism of pgfSweave (see
https://github.com/cameronbracken/pgfSweave/issues/40).
I have read the help page of confint(), but I do not know how to get
the help page for the glm() version, if any such help page exists.
Is there a general way of turning of output
2016 Jul 17
1
cat() in system.time() ?
On Fri, 15 Jul 2016, Martin Maechler wrote:
> Hi Ben (and everyone else),
>
> as this did not attract attention yet, let me start
>
>>>>>> Ben Bolker <bbolker at gmail.com>
>>>>>> on Mon, 4 Jul 2016 11:49:40 -0400 writes:
>
> > Does anyone know if there's a reason that proc.time() uses cat()
> > rather than
2012 May 15
1
KEGGSOAP installation error
Hello,
I'm trying to install KEGGSOAP with bioconductor but i'm facing this
problem:
/> biocLite("KEGGSOAP")
BioC_mirror: http://bioconductor.org
Using R version 2.15, BiocInstaller version 1.4.4.
Installing package(s) 'KEGGSOAP'
trying URL
'http://www.bioconductor.org/packages/2.10/bioc/src/contrib/KEGGSOAP_1.30.0.tar.gz'
Content type
2004 Jun 04
1
Samba, LDAP und TLS
Hi List ;-)
I consider my question to be rather simple one ... nevertheless I could not
find an answer to it up to now.
I have an OpenLDAP-server which is the user-db for an samba3-server. I want to
use TLS for secure communication, so I created a ca for this as well as
keys/certificates for my LDAP and samba-server. Informing the LDAP-server
about its certificate/key is easy ... but how do I
2012 Feb 16
2
creating series of vectors
Dear All,
I am pretty new to R and thus my question may sound silly.
Is there a way to automatically generate a series of separate vectors
(so not arranged in a matrix), without typing and changing every time
the values, and store them as separate *xlsx file, where the "*" is
replaced by the name of the vector itself?
What i would like to create is a total of 12 vectors,