toolendmessage: Tool: End message

Description Usage Arguments Author(s) See Also Examples

View source: R/toolendmessage.R

Description

Function writes a process end message and performs some diagnostics

Usage

1
toolendmessage(startdata, level = NULL)

Arguments

startdata

a list containing diagnostic information provided by toolstartmessage

level

This argument allows to establish a hierarchy of print statements. The hierarchy is preserved for the next vcat executions. Currently this setting can have 4 states: NULL (nothing will be changed), 0 (reset hierarchies), "+" (increase hierarchy level by 1) and "-" (decrease hierarchy level by 1).

Author(s)

Jan Philipp Dietrich

See Also

toolstartmessage, vcat

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
innerFunction <- function() {
  startinfo <- madrat:::toolstartmessage(list(argumentsToPrint = 123), "+")
  vcat(1, "inner")
  madrat:::toolendmessage(startinfo, "-")
}
outerFunction <- function() {
  startinfo <- madrat:::toolstartmessage(list(), "+")
  vcat(1, "outer")
  innerFunction()
  madrat:::toolendmessage(startinfo, "-")
}
outerFunction()

madrat documentation built on Oct. 11, 2021, 9:10 a.m.