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, id = "none")

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

id

additional id which uniquely identifies the process that just has been finished

Author(s)

Jan Philipp Dietrich

See Also

toolstartmessage, vcat

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
tmp <- function(bla=NULL) {
  startinfo <- toolstartmessage("+")
  print(bla)
  toolendmessage(startinfo,"-")
  }
tmp(bla=99)

## End(Not run)

madrat documentation built on Dec. 25, 2019, 9:07 a.m.