GEOHandler-functions: 'connectToGEODB'

Description Usage Arguments Value Examples

Description

This method allows users to connect to the GEOmetadb downloaded. If no parameter is provided than the function retrieves the database in sqlite format and returns a connection to query the database

Usage

1
2
connectToGEODB(sqliteFilePath = NULL, download = FALSE,
  destdir = getwd())

Arguments

sqliteFilePath

optional SQLite full file path of the SQLite database if already downloaded

download

If TRUE allow the automatic downloading of the database file.

destdir

optional destination directory. Current working directory is the default

Value

A connection to the GEOmetadb

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
 geo_connection <- connectToGEODB(download=TRUE)
 
## End(Not run)
 if(file.exists('GEOmetadb.sqlite')){
    geo_con <- connectToGEODB()
 } else {
 message('Please provide GEOmetadb.sqlite file')
 }

Onassis documentation built on Nov. 8, 2020, 8:18 p.m.