Description Usage Arguments Value
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().
1  | has_file_search_pat(ps_file, ps_pattern)
 | 
ps_file | 
 name of file in which search is done  | 
ps_pattern | 
 pattern for which we search for  | 
TRUE, if we have an exact match of ps_pattern in ps_file, FALSE otherwise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.