comment_lines: Comment and uncomment lines of control file

comment_linesR Documentation

Comment and uncomment lines of control file

Description

[Stable]

Comment out lines of code with that are matched by a patter string.

Usage

comment_out(m, pattern = ".*")

uncomment(m, pattern = ".*")

Arguments

m

An nm object.

pattern

Character regex. Passed to gsub().

Value

An nm object with modified ctl_contents field.

See Also

gsub_ctl(), target()


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.