Learn R Programming

NMproject (version 0.6.9)

comment_lines: 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 = ".*")

Value

An nm object with modified ctl_contents field.

Arguments

m

An nm object.

pattern

Character regex. Passed to gsub().

See Also

gsub_ctl(), target()