connectToGEODB {Onassis} | R Documentation

## `connectToGEODB`

### 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

    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

    ## 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')
     }

[Package Onassis version 1.2.7 Index]