checkData = function(data){
if(!is.numeric(data)){
stop("Only numeric data allowed")
}
if(anyNA(data)){stop("Missing value: NA is not allowed in the data as changepoint methods are only sensible for regularly spaced data.")}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.