nii_fname = function(fname) {
gz = grepl("[.]gz$", tolower(fname))
if (any(gz)) {
fname[gz] = sapply(
fname[gz],
R.utils::gunzip,
temporary = TRUE,
overwrite = TRUE,
remove = FALSE)
}
return(fname)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.