glueIndentLines: Indent lines

View source: R/glueIndentLines.R

glueIndentLinesR Documentation

Indent lines

Description

[Stable]

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

Usage

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

## Not run: 
library(glue)
library(stringr)

tableRows <- glue::glue("
<tr class='rowSeperator'>
    <td>Test</td>
</tr>
")

glueIndentLines(tableRows, 2)

## End(Not run)

MARC-KC/marcR documentation built on June 2, 2022, 9:31 p.m.