View source: R/replace_leading_whitespace.R
replace_leading_whitespace | R Documentation |
Reformat strings with leading whitespace for HTML
replace_leading_whitespace(x, tab_width = 4)
x |
Target string |
tab_width |
Number of spaces to compensate for tabs |
String with replaced for leading whitespace
x <- c(" Hello there", " Goodbye Friend ", "\tNice to meet you",
" \t What are you up to? \t \t ")
replace_leading_whitespace(x)
replace_leading_whitespace(x, tab=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.