Description Usage Arguments Value Note See Also Examples
This operator allows you to add comments to character strings.
1 2 3 | x %:)% y
x %comment% y
|
x |
A character string that is to be commented. |
y |
A character string (the comment). |
Returns a character string of the class subcom
with a comment
added as a "comment"
attribute.
The operator, %:)%
, is a simple smiley face emotion because
commented code is happy code.
1 2 3 4 5 6 7 8 9 10 | a <- "The character string"
b <- "The comment"
(out <- a %:)% b)
attributes(out)
comment(out)
minimal <- construct("a", "b", "c" %:)% "A love note to your future self")
minimal
comments(minimal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.