# Functions to use with extras/MinimizeFileSizes.R
# Compiled with package for efficiency
minimizeFile <- function(file) {
sp <- readRDS(file)
sp <- sp[, c("rowId", "treatment", "subjectId", "outcomeCount", "timeAtRisk", "survivalTime")]
saveRDS(sp, file)
}
replaceWithZeroFile <- function(file) {
saveRDS(c(), file)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.