The praise.me package is created for teaching demo purposes. It extends the idea of the praise package but includes:
- the use of
cowsaypackage to demonstrate the use of imported package, - the use of special
printmethod, - the use of tags
@descripton,@param,@return,@rdnamefromroxygen2, - the concept of turning repeated steps into an internal function (e.g.
praise_now()), - distribution and documentation of data,
- simple tests via
testthat, - a vignette, and
- a
pkgdownwebsite.
Installation
You can install the development version of cheer like so:
remotes::install_github("emitanaka/praise.me")Example
Give yourself or others a simple praise:
library(praise.me)
praise_me()
#> You are extraordinary!
praise_me(by = "chicken")
#>
#> -----
#> You are astonishing!
#> ------
#> \
#> \
#> _
#> _/ }
#> `>' \
#> `| \
#> | /'-. .-.
#> \' ';`--' .'
#> \'. `'-./
#> '.`-..-;`
#> `;-..'
#> _| _|
#> /` /` [nosig]
#>
praise_someone()
#> Extraordinary!
praise_someone(who = "Natalia", by = "cow")
#>
#> -----
#> Natalia is phenomenal!
#> ------
#> \ ^__^
#> \ (oo)\ ________
#> (__)\ )\ /\
#> ||------w|
#> || ||