#' Check if the `trainedmodelname` is valid
#'
#' Check if the `trainedmodelname` is valid
#' Will \link{stop} if not.
#' @inheritParams default_params_doc
#' @return Nothing. Will \link{stop} if `trainedmodelname` is invalid.
#' @examples
#' check_trainedmodelname("ae_out")
#' @author Richèl J.C. Bilderbeek
#' @export
check_trainedmodelname <- function(
trainedmodelname
) {
testthat::expect_equal(1, length(trainedmodelname))
testthat::expect_true(is.character(trainedmodelname))
testthat::expect_true(nchar(trainedmodelname) > 0)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.