Learn R Programming

todor (version 0.1.2)

clean_comments: 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

Run this code
# NOT RUN {
clean_comments("#' TODO abc abc") #"TODO abc abc"
# }

Run the code above in your browser using DataLab