#' deleteFiles.R
#'
#' @description
#' The \code{deleteFiles} function removes any existing
#' files given the filepath
#'
#' Details.
#'
#' @param filePaths A vector of filePaths directing to files that
#' are needed to be removed
#'
#' @examples
#' filePaths <- c("data/BB11017ClustalW.fasta", "data/BB11017Muscle.fasta")
#' deleteFiles(filePaths)
#'
#' @keywords internal
#'
deleteFiles <- function(filePaths) {
#delete files in the filePath
for (path in filePaths) {
if (file.exists(path)) {
file.remove(path)
}
}
}
# [END]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.