R/check_beast2_path.R

Defines functions check_beast2_path

Documented in check_beast2_path

#' Checks the BEAST2 \code{.jar} path.
#' Will stop if there is a problem with the BEAST2 \code{.jar} path.
#' @inheritParams default_params_doc
#' @return nothing.
#'   Will call \code{\link{stop}} if the BEAST2 \code{.jar} path has a problem
#' @author Richèl J.C. Bilderbeek
#' @examples
#' check_empty_beaustier_folders()
#'
#' if (is_beast2_installed()) {
#'   beast2_path <- get_default_beast2_jar_path()
#'   check_beast2_path(beast2_path)
#' }
#'
#' check_empty_beaustier_folders()
#' @export
check_beast2_path <- function(beast2_path) {
  beautier::check_file_exists(beast2_path, "beast2_path")
  invisible(beast2_path)
}

Try the beastier package in your browser

Any scripts or data that you put into this service are public.

beastier documentation built on Nov. 7, 2023, 5:08 p.m.