animal_sounds <- function(animal, sound) {
assertthat::assert_that(
assertthat::is.string(animal),
assertthat::is.string(sound)
)
paste0("The ", animal, " says ", sound, sound ,"!")
}
#this function using the assertthat package to check for strings
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.