warning_flags {foolbox}R Documentation

Collection of warning flags used when traversing expressions.

Description

These are flags for turning warnings on or off when traversing expression trees.

Usage

warning_flags()

set_warn_on_unknown_function(flags)

unset_warn_on_unknown_function(flags)

set_warn_on_local_function(flags)

unset_warn_on_local_function(flags)

Arguments

flags

Used when setting or unsetting flags.

Details

The flags can be provided to transformation and analysis functions, and be set or unset by the set_/unset_ functions. The meaning of the flags are:

Since R is a very dynamic language, it is not possible to know which local variables might refer to functions and which do not – and R will look for functions if a variable is used as a call and potentially skip past a local variable that refers to a non-function – so the warnings are based on heuristics in identifying local variables and are conservative in the sense that they assume that if a call is to a name that matches a local variable, then it is the local variable that is being called.

Functions


[Package foolbox version 0.1.1 Index]