msg: Message logging function

Description Usage Arguments

Description

This is an interface to a simple message logging system. The basic usage is to call msg("text") to output some text onto the console with cat. This function records all the messages logged, so that it is possible to retrive them using msg(NULL, action="show")

Usage

1
msg(x = NULL, ..., action = c("log", "get", "show", "reset"))

Arguments

x

character, messages to log

...

character, this allows the user to write a message that is split into multiple parts, e.g. msg("hello", "there")

action

character, determines what the processing performed on the input. Defaults to 'log', which logs a new message. Other options are show and get, which retrieve all the stored message. Action 'reset' deletes all messages and clears up memory.


tkonopka/shrt documentation built on March 5, 2020, 2:51 p.m.