The praise.me
package is created for teaching demo purposes. It extends the idea of the praise
package but includes:
- the use of
cowsay
package to demonstrate the use of imported package, - the use of special
print
method, - the use of tags
@descripton
,@param
,@return
,@rdname
fromroxygen2
, - 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
pkgdown
website.
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|
#> || ||