r format(Sys.time(), "%d %B, %Y; %R")
knitr::opts_chunk$set(fig.width=12, fig.height=8, fig.path=paste0('Figures_/'), dev='pdf', echo=TRUE, warning=FALSE, message=FALSE, error=TRUE)
suppressWarnings(library('tidyverse')) suppressWarnings(library('magrittr')) suppressWarnings(library('knitr')) suppressWarnings(library('RMetaTools')) suppressWarnings(library(microbenchmark))
fname <- system.file("extdata", "deeptools3_matrix.gz", package = "RMetaTools")
microbenchmark({df <- load_deeptoolsmatrix3(fname)}, times = 10)
microbenchmark({df <- load_deeptoolsmatrix3(fname, as.matrix=T)}, times = 10)
microbenchmark({df <- load_deeptoolsmatrix3(fname, as.S3=T)}, times = 10)
--> matrix and S3 are faster than tidy version and matrix marginally faster than S3
sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.