pm function

Paste for message

Paste for message

Combines the base functions paste0 and message

pm(..., collapse = NULL)

Arguments

  • ...: one or more R objects, to be converted to character vectors. Input(s) to this argument will be passed onto the paste0 function.
  • collapse: an optional character string to separate the results. Not NA_character_. Input(s) to this argument will be passed onto the paste0 function.

Returns

there will be no output from this function. Rather, a message will be generated from the arguments.

Examples

pm("hello", 123) pm(c("hello", 123), collapse = ", ")