tests/testthat/_snaps/utils-msg-format.md

output test

Code
  # # Problems
  writeLines(format_error_bullets(problems("header", c("item 1", "item 2"))))
Output
  header.
  x item 1.
  x item 2.
Code
  writeLines(format_error_bullets(problems("header", LETTERS)))
Output
  header.
  x A.
  x B.
  x C.
  x D.
  x E.
  x ... and 21 more problems.
Code
  writeLines(format_error_bullets(problems("header", as.character(1:6))))
Output
  header.
  x 1.
  x 2.
  x 3.
  x 4.
  x 5.
  x ... and 1 more problem.
Code
  # # Bullets
  writeLines(format_error_bullets(bullets("header", c("item 1", "item 2"))))
Output
  header.
  * item 1.
  * item 2.
Code
  writeLines(format_error_bullets(bullets("header", LETTERS)))
Output
  header.
  * A.
  * B.
  * C.
  * D.
  * E.
  * F.
  * G.
  * H.
  * I.
  * J.
  * K.
  * L.
  * M.
  * N.
  * O.
  * P.
  * Q.
  * R.
  * S.
  * T.
  * U.
  * V.
  * W.
  * X.
  * Y.
  * Z.
Code
  writeLines(format_error_bullets(bullets("header", as.character(1:6))))
Output
  header.
  * 1.
  * 2.
  * 3.
  * 4.
  * 5.
  * 6.
Code
  # # Commas
  commas("1")
Output
  [1] "1"
Code
  commas(letters[2:4])
Output
  [1] "b, c, and d"
Code
  commas(LETTERS)
Output
  [1] "A, B, C, D, E, and 21 more"


Try the tibble package in your browser

Any scripts or data that you put into this service are public.

tibble documentation built on March 31, 2023, 11 p.m.