haver.verbose {Haver} | R Documentation

## Set or Query the Verbose Message Mode of Haver Functions

### Description

`haver.verbose` sets the message display mode of Haver functions to be on or off. When you set the message display mode to non-verbose, the Haver functions will not generate any printed output, except for warnings and error messages.

### Usage

    haver.verbose()
    haver.verbose(vset)

### Arguments

`vset` | a numeric 0 (1) or logical `FALSE` (`TRUE`) turn the verbose mode off (on).

### Details

The verbose setting concerns regular messages issued via the `print` and `cat` functions only. Warnings and error messages are not affected. You can handle the display of warnings and errors as usual in R.

Upon package import, the Haver verbose mode is always turned on. Unless there is a specific reason to set the verbose mode to `FALSE`, we recommend not doing so.

### Value

If no argument is supplied, returns a logical scalar indicating whether the verbose mode is on or off; and `NULL` otherwise.

### See Also

See Haver_package for all help entries related to the Haver package.

### Examples

    haver.path()
    haver.path("examples")

    ## We first save the current setting for the verbose mode:
    ex_verb <- haver.verbose()

    ## Verbose mode settings affect data queries, among other things:
    hmd <- haver.metadata(database='havermqa')

    haver.verbose(1)
    hd  <- haver.data(hmd)

    haver.verbose(0)
    hd  <- haver.data(hmd)

    ## After verbose mode was turned off, we were not notified that two
    ## series got dropped from the query.

    haver.verbose(ex_verb)

    haver.path("restore")

[Package Haver version 3.2 Index]