Description Usage Arguments See Also Examples
Wrap strings with flanking characters
1 2 3 4 5 6 7 8 9 10 11 |
x |
character to wrap |
left, right |
character pair to wrap with |
sep, ... |
passed to |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | wrap("abc", "__") # __abc__
parens("abc") # (abc)
sngl_quote("abc") # 'abc'
dbl_quote("abc") # "abc"
bracket("abc") # [abc]
brace("abc") # {abc}
label <- p("name", parens("attribute"))
label # "name (attribute)"
unparens(label) # "name attribute"
# make your own function like this:
# markdown bold
bold <- function(...) wrap(paste(...), "**")
p("make a word", bold("bold"))
# see unbold example in ?unwrap
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.