Skip to contents

Print the sound that an animal makes in the console.

Usage

animal_sounds(animal, sound = NULL)

Arguments

animal

A string - the name of the animal

sound

A string - the name of the sound

Value

A string - 'The {animal} says {sound}!'

Details

Is a wrapper to paste0(). This is a silly function in a toy package.

Examples

animal_sounds('dog','woof')
#> [1] "The dog says woof!"