foo <- error_cnd(
  "foo",
  message = "Parent message.",
  body = c("*" = "Bullet 1.", "*" = "Bullet 2."),
  call = call("foo"),
  use_cli_format = TRUE
)

Error.

abort(
  c("Message.", "x" = "Bullet A", "i" = "Bullet B."),
  parent = foo,
  call = call("f")
)

Warning.

warn(
  c("Message.", "x" = "Bullet A", "i" = "Bullet B."),
  parent = foo,
  call = call("f")
)

Message.

inform(
  c("Message.", "x" = "Bullet A", "i" = "Bullet B."),
  parent = foo,
  call = call("f")
)


tidyverse/rlang documentation built on Oct. 31, 2024, 5:35 p.m.