View source: R/str_detect_in_file.R
str_detect_in_file | R Documentation |
Detect string in file
str_detect_in_file(file, pattern, only_comments = FALSE, collapse = FALSE)
file |
Path to file. |
pattern |
Pattern to match. |
only_comments |
default FALSE. Whether to only search in commented lines. |
collapse |
default: FALSE: search file line by line. If true, then pattern is search in the entire file at once after collapsing. (only_comments does not work when collapse is set to TRUE) |
Boolean whether pattern exists in file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.