comments(x, ...)comments(x) <- value
comments
- Returns a list of comments.
comments
- Get the comments
from a regexr
object.
comments<-
- Set the comments
of a regexr
object.
minimal <- construct("a", "b", "c" %:)% "Comment #3") minimal[1] "abc"comments(minimal)[[1]] NULL [[2]] NULL [[3]] [1] "Comment #3"comments(minimal)[2] <- "A comment" comments(minimal)[[1]] NULL [[2]] [1] "A comment" [[3]] [1] "Comment #3"