knitr::opts_chunk$set( collapse = TRUE, comment = "#>") required <- c("maps", "mapproj", "knitr") if (!all(sapply(required, requireNamespace, quietly = TRUE))) { knitr::opts_chunk$set(eval = FALSE) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.