Skip to contents

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)))
#>   1
#>     2
#>       3
cat(sprintf("%s1\n%s2\n%s3\n", space(1, 4), space(2, 4), space(3, 4)))
#>     1
#>         2
#>             3