[R] question on suppressing error messages with Rmath library
ronggui
ronggui.huang at gmail.com
Wed Mar 21 15:08:16 CET 2007
op <- options(warn=-1)
[main codes here]
options(op)
On 3/21/07, Ranjan Maitra <maitra at iastate.edu> 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?
>
> 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.
>
--
Ronggui Huang
Department of Sociology
Fudan University, Shanghai, China
More information about the R-help
mailing list