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()


tsahota/NMproject documentation built on Oct. 1, 2022, 11:51 a.m.