spotter: Make a spotter function

Description Usage Arguments Details Value Author(s)

View source: R/events.R

Description

Creates spotter function

Usage

1
spotter(..., re = FALSE)

Arguments

...

Patterns, matches to which the returned function should return TRUE

re

whether to treat the patterns as regular expressions

Details

This is a convenience function that creates and returns a function which returns TRUE when any of its arguments match one of the patterns given here. When re is TRUE, arguments to this function are matched as regular expressions in the returned function using the base R function grepl with its default parameters. These currently imply no PERL-style regexps, case sensitivity, and character rather than byte-based matching. When re is FALSE any exact match is sufficient for the returned function to return TRUE.

Value

A spotter function

Author(s)

Will Lowe


conjugateprior/events documentation built on May 13, 2019, 9:56 p.m.