#' Check if the alignment is of the right type
#'
#' Will \link{stop} if not.
#' @inheritParams default_params_doc
#' @return nothing
#' @author Richèl J.C. Bilderbeek
#' @examples
#' # Check cleanup by other functions
#' beastier::check_empty_beaustier_folders()
#'
#' check_alignment(ape::as.DNAbin("ACGT"))
#' @export
check_alignment <- function(alignment) {
if (!inherits(alignment, "DNAbin")) {
stop("'alignment' must be of class 'ape::DNAbin'")
}
invisible(alignment)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.