console.log: console.log

Description Usage Arguments Examples

View source: R/console.r

Description

Allow for simpler syntax in R. Output messages to console. Use options('utilsRL::silent'=TRUE) to disable console output.

Usage

1
console.log(tabs=tabs, tab.char=tab.char, silent.off=silent.off, m1, m2, ..)

Arguments

tabs

a non-negative integer. Default 0. Number of tab sets to be produced on each new line.

tab.char

character. Default ' '. This will be used as the indentation string.

silent.off

boolean. Default FALSE. If true, then no output will be shown under the option 'utilsRL::silent'=TRUE.

m1

character string / vector of character strings. The strings will be concatenated with no spaces, prepended by tab stops and followed by a '\n' character.

m2

similar. User can set 0 or more 'messages' to be printed in the console.

Examples

1
2
3
4
5
## Not run: 
console.log(tabs=0, 'Test');
console.log(tabs=1, silent.off=TRUE, 'Starting Method', c('Scanning data set ',k,' for solutions:'));

## End(Not run)

RLogik/utilsRL documentation built on July 29, 2020, 6:22 p.m.