setDB: A function to set the connection to the database

Description Usage Arguments Note See Also Examples

View source: R/registerDatabaseFunctions.R

Description

A setDB funtion to create a database connection object

Usage

1
setDB(db_name = NULL)

Arguments

db_name

a character string providing the absolute path to the PROFOUND database.

Note

To report errors in the package or the data, please use the issue tracker in the GitHub repository of ProfoundData https://github.com/COST-FP1304-PROFOUND/ProfoundData

See Also

getDB, downloadDatabase

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
  
# For downloading the data, use 
dbfile <- downloadDatabase(location = tempdir())

# Set the connection using the setDB function
setDB(dbfile)

# check if database is available
getDB()

## End(Not run)

ProfoundData documentation built on March 31, 2020, 5:24 p.m.