#' Helper Function For creatingContestants Functions
#'
#' @export
#'
validateCreatingContestants = function(contestantsInput){
errorMessage = "contestants MUST be a whole number greater than 1"
if(!is.numeric(contestantsInput)){
stop(errorMessage)
}
if(contestantsInput %% 1 != 0){
stop(errorMessage)
}
if(contestantsInput < 2){
stop(errorMessage)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.