Description Usage Arguments Examples
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().
1 | define.catt(ntab = NULL, nspace = NULL)
|
ntab |
How many tabs indent |
nspace |
How many spaces indent |
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.