Description Usage Arguments Value Examples
Strip comments from a character vector
1 2 3 4 5 6 7 | strip_comments(x, comment, keep_with = NULL)
## S3 method for class 'character'
strip_comments(x, comment = ";", keep_with = NULL)
## S3 method for class 'list'
strip_comments(x, comment = ";", keep_with = NULL)
|
x |
Character vector |
A character vector with comments removed
1 2 | x <- c("; this is a comment in Gadget", "main\tmainfile")
strip_comments(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.