README.md

toyr

toyr is a simple toy package created purely for educational purposes.

Installation

You can install the released version of toyr from CRAN with:

install.packages("toyr")

Example

toyr provides a single function teddy() to return and optionally print a teddy bear ASCII art:

library(toyr)

# Obtain a teddy bear ASCII art string and print it out
cat(teddy(FALSE))
#> 
#>           ___   .--.
#>     .--.-"   "-' .- |
#>    / .-,`          .'
#>    \   `           \
#>     '.            ! \
#>       |     !  .--.  |
#>       \        '--'  /.____
#>      /`-.     \__,'.'      `\
#>   __/   \`-.____.-' `\      /
#>   | `---`'-'._/-`     \----'    _ 
#>   |,-'`  /             |    _.-' `\
#>  .'     /              |--'`     / |
#> /      /\              `         | |
#> |   .\/  \      .--. __          \ |
#>  '-'      '._       /  `\         /
#>     jgs      `\    '     |------'`
#>                \  |      |
#>                 \        /
#>                  '._  _.'
#>                     ``


pokrovskyy/toyr documentation built on March 2, 2020, 12:12 a.m.