space: Space String Used for Indentation

View source: R/utils.R

spaceR Documentation

Space String Used for Indentation

Description

Chain together depth * tabLength spaces

Usage

space(depth = 1L, tabLength = 2L)

Arguments

depth

depth of indentation

tabLength

number of spaces per indentation level

Value

vector of character of length one consisting of depth * tabLength space characters

Examples

cat(sprintf("%s1\n%s2\n%s3\n", space(1), space(2), space(3)))
cat(sprintf("%s1\n%s2\n%s3\n", space(1, 4), space(2, 4), space(3, 4)))


KWB-R/kwb.utils documentation built on April 1, 2024, 7:12 a.m.