set_verbosity: Set and Get Verbosity Level.

Description Usage Arguments Details See Also Examples

View source: R/modulr.R

Description

Set and get the global verbosity level.

Usage

1
2
3

Arguments

level

A scalar (integer vector of length one), possibly -Inf or +Inf.

Details

Messages are generated, accordingly to the following levels:

Level 0.

None.

Level 1.

Operations modifying the internal state.

Level 2 (default).

All operations.

Level +Inf.

Debugging informations.

See Also

define, make, reset, and touch.

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
30
31
reset()
set_verbosity(+Inf)
define("foo", NULL, function() "Hello World")
define("bar", list(f = "foo"), function(f) sprintf("*%s*", f))
make()
touch("foo")
make("bar")

reset()
set_verbosity(2)
define("foo", NULL, function() "Hello World")
define("bar", list(f = "foo"), function(f) sprintf("*%s*", f))
make()
touch("foo")
make("bar")

reset()
set_verbosity(1L)
define("foo", NULL, function() "Hello World")
define("bar", list(f = "foo"), function(f) sprintf("*%s*", f))
make()
touch("foo")
make("bar")

reset()
set_verbosity(0L)
define("foo", NULL, function() "Hello World")
define("bar", list(f = "foo"), function(f) sprintf("*%s*", f))
make()
touch("foo")
make("bar")

openscienceunil/modulr documentation built on May 3, 2019, 5:49 p.m.