Learn R Programming

joyn (version 0.2.4)

store_msg: Store joyn message to .joynenv environment

Description

Store joyn message to .joynenv environment

Usage

store_msg(type, ...)

Value

current message data frame invisibly

Arguments

...

combination of type and text in the form style1 = text1, style2 = text2, etc.

See Also

Messages functions clear_joynenv(), joyn_msg(), joyn_msgs_exist(), joyn_report(), msg_type_dt(), style(), type_choices()

Examples

Run this code
# Storing msg with msg_type "info"
joyn:::store_msg("info",
  ok = cli::symbol$tick, "  ",
  pale = "This is an info message")

# Storing msg with msg_type "warn"
joyn:::store_msg("warn",
  err = cli::symbol$cross, "  ",
  note = "This is a warning message")

Run the code above in your browser using DataLab