haver.databases {Haver} | R Documentation

## Print or Return List of Haver Analytics Databases

### Description

`haver.databases` lists databases that are accessible under the current setting of `haver.path`.

### Usage

    haver.databases()
    haver.databases(display=FALSE)

### Arguments

`display` | if `FALSE` (the default) returns a list of Haver Analytics database files (‘.DAT’ extension files). if `TRUE` prints the same list to the screen and returns `NULL`.

### Value

`display=FALSE`, returns a character vector containing names of DLX databases, in upper case.

If `display=TRUE`, returns `NULL`.

### Usage with DLX Direct

If DLX Direct mode is switched on, `Haver.databases` returns an error. See `haver.direct` for more details.

### See Also

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

### Examples

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

    ## Let's look at the example databases that are shipped with the Haver package:

    print( haver.path() )
    haver.path('examples')
    print( haver.databases(disp=TRUE) )

    ## We can save the database names in a list of str:
    ex_dbs = haver.databases()
    print( ex_dbs )

    haver.path("restore")

[Package Haver version 3.2 Index]