Runuran.options {Runuran} | R Documentation |
Set or return options for Runuran library
Description
Library Runuran has some parameters which (usually) affect the
behavior of its functions. These can be set for the whole session
via Runuran.options
.
Usage
Runuran.options(...)
Arguments
... |
A list may be given as the only argument, or any number of
arguments may be in the |
Details
The function provides a tool to control the behavior of library
Runuran. A list may be given as the only argument, or any
number of arguments may be in the name=value
form.
If no arguments are specified then the function returns the
current settings of all parameters.
If a single option name is given as character string, then its
value is returned (or NULL
if it does not exist).
Option values may be abbreviated.
Currently used parameters in alphabetical order:
- error.level
-
verbosity level of error messages and warnings from the underlying UNU.RAN library. It has no effect on messages from the routines in this package. Warnings are useful for analysing possible problems with the selected combinations of distribution and method. However, they can produce quite a lot of output if the conditions of the method is appropriate for a distribution or the distribution has properties like very heavy tails or very high peaks.
The following levels can be set:
"default"
:-
same as
"warning"
. "none"
:-
all error messages and warnings are suppressed.
"error"
:-
only show error messages.
"warning"
:-
show error messages and some of the warnings.
"all"
:-
show all error messages and warnings.
Value
Runuran.options
returns a list with the updated values of the
parameters. If the argument list is not empty, the returned list
is invisible. If a single character string is given, then the
value of the corresponding parameter is returned (or NULL
if the parameter is not used).
Author(s)
Josef Leydold josef.leydold@wu.ac.at
Examples
## save current options
oldval <- Runuran.options()
## show current options
Runuran.options("error.level")
## suppress all UNU.RAN error messages and warnings
Runuran.options(error.level="none")
## restore Runuran options
Runuran.options(oldval)