setLogFile | R Documentation |
setLogFile
allows to redirect all log messages to a file
setLogFile(con = stdout())
con |
a connection object which inherits from class "connection" |
# Redirect all log messages to a temporary file
outtmp <- tempfile()
con <- file(outtmp, "wt", encoding = "UTF-8")
setLogFile(con)
data_dir <- system.file("extra", package = "Rnmr1D")
RAWDIR <- file.path(data_dir, "CD_BBI_16P02")
CMDFILE <- file.path(data_dir, "NP_macro_cmd.txt")
SAMPLEFILE <- file.path(data_dir, "Samples.txt")
out <- Rnmr1D::doProcessing(RAWDIR, cmdfile=CMDFILE, samplefile=SAMPLEFILE, ncpu=2)
close(con)
readLines(outtmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.