create.info: Print info with timestamp

Description Usage Arguments Value Examples

Description

Print debug message, progress reports... with timestamp.

Usage

1
create.info(prefix = "")

Arguments

prefix

prefix of message.

Value

object of class info

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
    info.self <- create.info() #create object of info class
    print(info.self,"print message without prefix.")

    info.self <- create.info("tutorial.info") #create object of info class with "tutorial.info" as prefix
    print(info.self,"print message with prefix, use identifier for prefix usually.")

    # turn it off
    info.enable(FALSE) #turn information printing off all together
    print(info.self,"will print nothing from now on.")
    print(info.self,"conform print nothing.")

    # turn it on
    info.enable(TRUE) #turn information printing on all together
    print(info.self,"start printing again.")







tutorial("info") # print tutorial to console





}

WeiZhang317/octopus documentation built on May 20, 2019, 4:26 p.m.