Skip to contents

IMPORTANT! This is a toy package, developed during the Forwards R Package Development Workshop

The goal of animalsounds is to print the sound that an animal makes!

Installation

You can install the development version of animalsounds from GitHub with:

# install.packages("devtools")
devtools::install_github("aforestsomewhere/animalsounds")

Example

A basic example of usage:

library(animalsounds)
## basic example code
animal_sounds("lion", "moo")
[1] "The lion goes moo!"

animal_sounds(1, "moo")
Error in `animal_sounds()`:
! `animal` must be a single string!
It was a number of length 1 instead.
Run `rlang::last_trace()` to see where the error occurred.