define.catt: A modified cat()

Description Usage Arguments Examples

View source: R/catt.R

Description

A modified cat() (therefore catt()), to have empty space before output generally If defince.catt() is done as wished, catt's usage is as cat().

Usage

1
define.catt(ntab = NULL, nspace = NULL)

Arguments

ntab

How many tabs indent

nspace

How many spaces indent

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
var <- "testtext\n"
catt <- define.catt(nspace=2) # from now on, all catt("anyText") are indented by two spaces
catt(var, "\n", "  ", var)
catt <- define.catt() # reset to 0 indent

# defines overwrite each other
catt(var)
catt <- define.catt(nspace=2)
catt(var)
catt <- define.catt(nspace=3)
catt(var)

# combinations are not possible in a usefull way.
catt <- define.catt(nspace=2, ntab=3)
catt(var)
catt <- define.catt()

gugl58/basicscriptsGG-Package documentation built on May 17, 2019, 9:08 a.m.