has_file_search_pat: Check whether ps_pattern is found in ps_file

Description Usage Arguments Value

Description

The check is done via grep for the pattern in the file. First, the file content is read into a character vector, then we search for the pattern. We are only interested in exact matches, hence the argument fixed=TRUE is specified for grep().

Usage

1
has_file_search_pat(ps_file, ps_pattern)

Arguments

ps_file

name of file in which search is done

ps_pattern

pattern for which we search for

Value

TRUE, if we have an exact match of ps_pattern in ps_file, FALSE otherwise


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.