Learn R Programming

dbd (version 0.0-22)

eow: Set or query the value of the "maxitErrorOrWarn" option.

Description

Chooses (set.eow()) or queries (get.eow()), the reaction to maxit being exceeded in mleDb() or mleBb(). The possible reactions are to throw an error or to issue a warning. The choice is effected by calling set.eow() which sets the value of options()[["maxitErrorOrWarning"]]. The current choice is revealed by get.eow(). This choice is set equal to "error" at startup.

Usage

set.eow(eow = c("error", "warn"))
get.eow()

Arguments

eow

Character string that specifies the reaction to maxit being exceeded in mleDb() or mleBb(). May be abbreviated.

Value

No value is returned by set.eow(). the value of "maxitErrorOrWarn" in options(). The function get.eow() returns the current value of options[["maxitErrorOrWarn"]].

See Also

mleDb() mleBb() options()

Examples

Run this code
# NOT RUN {
    get.eow()    # Is "error" at startup.
    set.eow("w") # Changes the option from "error" to "warning".
    set.eow("e") # Changes it back again.
# }

Run the code above in your browser using DataLab