Description Usage Arguments Value Creation notes Author(s) Examples
View source: R/glueIndentLines.R
Splits a string by newlines and adds a chosen number of tabs to each line.
1 | glueIndentLines(string, tabs = 1)
|
string |
String you want to add tabs to |
tabs |
Number of tabs you want to indent each line |
A glue
character string
First created in 2020-Oct while for building dynamic SQL statements.
Jacob Peterson
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
library(glue)
library(stringr)
tableRows <- glue::glue("
<tr class='rowSeperator'>
<td>Test</td>
</tr>
")
glueIndentLines(tableRows, 2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.