downloadDatabase: Downloads the PROFOUND database

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/registerDatabaseFunctions.R

Description

This function downloads the PROFOUND database

Usage

1
downloadDatabase(location = NULL)

Arguments

location

file system location to store the database. If not provide, the function will use the current working directory.

Details

This is a convenience function to quickly download the PROFOUND database. The function will query you to ask about the path to store the databse, and will return a string with the location, for use in setDB

Value

a string with the location of the sql database

Author(s)

Florian Hartig

See Also

getDB, setDB

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.