View source: R/Functions_xcmsRunner.R
writeStatus | R Documentation |
Write or update a status dataframe with custom messages, time stamp and time elapsed since last status. Useful to document time consumed by analysis steps.
writeStatus( previous = NULL, message = list(Status = "Starting analysis", Details = "loading files"), wd = getwd() )
previous |
a |
message |
named list of columns with elements |
wd |
directory where the status.csv file should be written and updated. If NULL, no status.csv is written. |
A writeStatus
object is a named list with two elements:
current proc.time()
,
A data.frame with progress messages in rows, and these columns:
Time
time stamp of analysis step
Status
status message/ analysis step
Details
details on analysis step
elapsed_time
total elapsed time
returns a writeStatus
object, see Details
and writes to
a status.csv
file in wd
status <- writeStatus(previous = NULL, message = list(Status = "Starting analysis", Details = "loading files" ), wd = getwd()) status <- writeStatus(previous = status, message = list(Status = "Running analysis", Details = "detecting features" ), wd = getwd())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.