str_align: Align some lines of code along a pattern

View source: R/stringr.R

str_alignR Documentation

Align some lines of code along a pattern

Description

Align some lines of code along a pattern

Usage

str_align(string, pattern = "<-")

Arguments

string

string

pattern

pattern

Value

aligned string

Examples

mystr <- 'a<- 1
sdlfkjslkdjlskdfjlsjdkjslkd<-2'
str_align(mystr)

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.