powered by
Prints a formatted string with optional prefix and end strings.
catf( ..., prefix = .Options$FastRet.catf.prefix, end = .Options$FastRet.catf.end )
No return value. This function is called for its side effect of printing a message.
Arguments to be passed to sprintf for string formatting.
A function returning a string to be used as the prefix. Default is a timestamp.
A string to be used as the end of the message. Default is a newline character.
catf("Hello, %s!", "world") catf("Goodbye", prefix = NULL, end = "!\n")
Run the code above in your browser using DataLab