tsmsg: Like 'message' but with a timestamp

View source: R/prog_utils.R

tsmsgR Documentation

Like message but with a timestamp

Description

This is identical to the message() function, except that it prepends a timestamp to every message.

Usage

tsmsg(...)

Arguments

...

All arguments are passed directly to message.

The time stamp is generated using date(). If you need anything more complicated than this, it's probably easier to abondon this function and just use date() and message() to manually add the timestamp in the format you want.

See Also

message(), date()

Examples


tsmsg("Hello world")


DarwinAwardWinner/rctutils documentation built on July 22, 2022, 5:19 a.m.