R/check_os.R

Defines functions check_os

Documented in check_os

#' 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'")
  }
}
richelbilderbeek/plinkr documentation built on March 25, 2024, 3:18 p.m.