setLogFile {Rnmr1D}R Documentation

setLogFile

Description

setLogFile allows to redirect all log messages to a file

Usage

setLogFile(con = stdout())

Arguments

con

a connection object which inherits from class "connection"

Examples

 
  # 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)
 

[Package Rnmr1D version 1.3.2 Index]