View source: R/glueIndentLines.R
glueIndentLines | R Documentation |
Splits a string by newlines and adds a chosen number of tabs to each line.
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
## 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.