#' Utility function to check if file is a csv or tsv.
#'
#' @param dataf Path to input file
#' @return None
#'
fileformat <- function(dataf) {
if (endsWith(dataf, ".tsv") == FALSE & endsWith(dataf, ".csv") == FALSE){
stop("This is not a supported file format. Please load in the
total set of taxa as a TSV or CSV file.")
} else {
message("File format is appropriate")
}
return(0)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.