Announce Class for Consistent Printing
announce.Rd
Creates an object of class "announce"
with a built-in title string used for printing.
Usage
announce(object = vector(), lead = "Announce", ...)
See also
Other print:
Print_Methods
,
lf()
,
print_all()
Examples
announce()
#> ___________
#> Announce: -
#>
#> logical(0)
(cpt <- announce("x", lead = "Lorem ipsum dolor sit amet"))
#> _____________________________
#> Lorem ipsum dolor sit amet: -
#>
#> [1] "x"
.class2(cpt)
#> [1] "announce" "character"
## an Announce object, or one inheriting from announce, can be safely overwritten
(cpt <- announce(cpt, "Consectetur adipiscing elit"))
#> ______________________________
#> Consectetur adipiscing elit: -
#>
#> [1] "x"
.class2(cpt)
#> [1] "announce" "character"
rm(cpt)