glueIndentLines: Indent lines

Description Usage Arguments Value Creation notes Author(s) Examples

View source: R/glueIndentLines.R

Description

Splits a string by newlines and adds a chosen number of tabs to each line.

Usage

1
glueIndentLines(string, tabs = 1)

Arguments

string

String you want to add tabs to

tabs

Number of tabs you want to indent each line

Value

A glue character string

Creation notes

First created in 2020-Oct while for building dynamic SQL statements.

Author(s)

Jacob Peterson

Examples

 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)

MARC-GIS/marcR documentation built on Nov. 16, 2020, 1:41 p.m.