clean_comments: Clean line from comment tags

View source: R/patterns.R

clean_commentsR Documentation

Clean line from comment tags

Description

Clean line from comment tags

Usage

clean_comments(line, pattern = NULL)

Arguments

line

character with comment tag to remove

pattern

character with pattern to detect (default NULL)

Value

cleaned character

Examples

## Not run: 
clean_comments("#' TODO abc abc") #"TODO abc abc"

## End(Not run)

dokato/todor documentation built on Jan. 11, 2024, 3:56 a.m.