get_macs2_n_summits <- function(macs2_summit_files){
rs <- sapply(macs2_summit_files, function(f){
n <- NA
if (file.exists(f)){
r <- sprintf('wc -l %s', f) %>% system(intern = TRUE)
n <- gsub('(.+) (.+)', '\\1', r) %>% as.numeric()
}
n
})
rs
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.