find_html_comments: Find HTML comments

View source: R/find_html_comments.R

find_html_commentsR Documentation

Find HTML comments

Description

Only comments that do not follow other text on a line are detected by default.

Usage

find_html_comments(lines, label = "", isolated = TRUE)

Arguments

lines

Character vector of lines to examine.

label

Optional regex expression that can be used to limit the comments found by adding each element of the character vector in turn immediately after "<!–" in the regex expression. The resulting logical vectors are OR'd together to combine their results.

isolated

Logical value indicating that the comment is the first text to appear on the line.


rmsharp/rmsutilityr documentation built on Feb. 13, 2024, 6:01 p.m.