Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

setLogFile

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=6)
   close(con)
   readLines(outtmp)

Rnmr1D

Perform the Complete Processing of a Set of Proton Nuclear Magnetic Resonance Spectra

v1.2.5
GPL (>= 2)
Authors
Daniel Jacob [cre, aut] (<https://orcid.org/0000-0002-6687-7169>), Catherine Deborde [ctb], Marie Lefebvre [ctb]
Initial release
2019-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.