tests/testthat/_snaps/ornament.md

ornament

Code
  new_ornament(c("abc", "de"))
Output
  <pillar_ornament>
  abc
  de 
Code
  new_ornament(c("abc", "de"), align = "right")
Output
  <pillar_ornament>
  abc
   de
Code
  new_ornament(c("abc", "de"), width = 5, align = "right")
Output
  <pillar_ornament>
    abc
     de
Code
  format(new_ornament(c("abc", "de")))
Output
  [1] "abc" "de "
Code
  format(new_ornament(c("abc", "de")), width = 5)
Output
  [1] "abc  " "de   "

vertical

Code
  as_glue(c("abc", "de"))
Output
  abc
  de


Try the pillar package in your browser

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

pillar documentation built on March 31, 2023, 10:19 p.m.