Description Usage Arguments Value Note Author(s) Examples
This utility function can be used to save time on task that takes long time to complete. A Rda file are written on disk containing only objects setted to keep. If checkpoint function find related Rda file then this Rda will be loaded.
1 2 3 4 5 6 7 8 | checkpoint(
label,
CODE,
path = ".",
overwrite = FALSE,
verbose = FALSE,
keep = NULL
)
|
label |
name of this code, will create a Rda file with the same name. |
CODE |
R code. |
path |
directory to write/load Rda file. |
overwrite |
Rerun CODE and replace Rda file. |
verbose |
argument passed to load function |
keep |
vector of object/variable name to keep. NULL means error. |
Nothing.
Experimental function.
Welliton Souza
1 2 3 4 5 | checkpoint("Rqc", path=system.file(package="Rqc", "extdata"), {
folder <- system.file(package="ShortRead", "extdata/E-MTAB-1147")
files <- list.files(full.names=TRUE, path=folder)
rqcResultSet <- rqcQA(files, pair=c(1,1), workers=1)
}, keep="rqcResultSet")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.