check_pkg_deps <- function() {
if(!require(dplyr)) {
stop("the 'dplyr' package needs to be installed first")
}
if(!require(tidyr)) {
stop("the 'tidyr' package needs to be installed first")
}
if(!require(stringr)) {
stop("the 'stringr' package needs to be installed first")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.