is.comment: Check if line of text is a comment

Description Usage Arguments Value Examples

Description

Check if line of text is a comment

Usage

1
is.comment(line, comm.char = "#", allow.ws = FALSE)

Arguments

line

character string

comm.char

character string; character (or string is permissible) to identify comment line

allow.ws

logical [1]; if FALSE, the comment character must be the first character, including spaces, for the line to be identified as a comment

Value

logical [1]

Examples

1
2
3
4
Rflow:::is.comment(" #  ")
Rflow:::is.comment(" #  ", allow.ws = TRUE)
Rflow:::is.comment("! test", "!")
Rflow:::is.comment("code", "")

CJBarry/Rflow documentation built on June 16, 2019, 12:35 p.m.