[Stable]

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

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