[R] question on suppressing error messages with Rmath library
James W. MacDonald
jmacdon at med.umich.edu
Wed Mar 21 15:06:08 CET 2007
Hi Ranjan,
Ranjan Maitra wrote:
> Dear list,
>
> I have been using the Rmath library for quite a while: in the current
> instance, I am calling dnt (non-central t density function)
> repeatedly for several million. When the argument is small, I get the
> warning message:
>
> full precision was not achieved in 'pnt'
>
> which is nothing unexpected. (The density calls pnt, if you look at
> the function dnt.) However, to have this happen a huge number of
> times, when the optimizer is churning through the dataset is
> bothersome, but more importantly, a bottleneck in terms of speed. Is
> it possible to switch this off? Is there an setting somewhere that I
> am missing?
See ?options, particularly the section on 'warn'.
Best,
Jim
>
> Many thanks and best wishes, Ranjan
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> 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.
--
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.
More information about the R-help
mailing list