remove_empty_tabix <- function(f,
min_size = 1,
verbose = TRUE) {
if (file.exists(f)) {
if (file.size(f) < 1) { # Less than (min_size) bytes
messager("Removing empty tabix file and its index.",
v = verbose
)
try({file.remove(paste0(f, "*"))}) # Remove both
}
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.