connectToGEODB {Onassis} | R Documentation |
connectToGEODB
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
connectToGEODB(sqliteFilePath = NULL, download = FALSE, destdir = getwd())
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 |
A connection to the GEOmetadb
## 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') }