pioTkn: Tokenizer.

Description Usage Arguments Value Examples

View source: R/pioTkn.R

Description

This function tokenizes each one of a set of ellipsis parameters, and creates a concatenated output string with spaces. Each input value will be tokenized as follows: if the value is 'NA' or 'NULL', a red background is reported with white text; if the value is logical, true values will be green and false value will be red. In all other cases the output and the input match.

Usage

1
pioTkn(..., no_color = FALSE)

Arguments

...

A list of parameters to tokenize and collapse.

no_color

If 'TRUE', avaoids tokenizing and returns just the collapsed output string.

Value

A collapsed output strong with tokenized inputs.

Examples

1
2
3
4
5
# Takenize different types of variables 
cat(pioTkn(4, 5, "banana", TRUE, NULL, FALSE, NA))

# assemble without tokenizing 
cat(pioTkn(4, 5, FALSE, NA, no_color = TRUE))

caravagn/pio documentation built on June 21, 2020, 5:18 a.m.