str_detect_in_file: Detect string in file

View source: R/str_detect_in_file.R

str_detect_in_fileR Documentation

Detect string in file

Description

Detect string in file

Usage

str_detect_in_file(file, pattern, only_comments = FALSE, collapse = FALSE)

Arguments

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)

Value

Boolean whether pattern exists in file.


vvauditor documentation built on May 29, 2024, 12:20 p.m.