#' Checks if the operating system is supported
#' @inheritParams default_params_doc
#' @return nothing. Will stop if the OS is unsupported
#' @author Richèl J.C. Bilderbeek
#' @examples
#' check_os("mac")
#' check_os("unix")
#' check_os("win")
#' @export
check_os <- function(os) {
if (!os %in% c("mac", "unix", "win")) {
stop("'os' must be either 'mac', 'unix' or 'win'")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.