Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is_filter

Check if an R Object is a Filter


Description

Returns TRUE for any R object that can be used as a Filter for Loggers or, Appenders:

  • a function with the single argument event;

  • an EventFilter R6::R6 object; or

  • any object with a $filter(event) method.

Note: A Filter must return a scalar TRUE or FALSE, but this property cannot be checked by is_filter().

Usage

is_filter(x)

Arguments

x

any R Object

Value

TRUE or FALSE

See Also


lgr

A Fully Featured Logging Framework

v0.4.2
MIT + file LICENSE
Authors
Stefan Fleck [aut, cre] (<https://orcid.org/0000-0003-3344-9851>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.