get_ecotox_sqlite_file {ECOTOXr} | R Documentation |
The local path to the ECOTOX database (directory or sqlite file)
Description
Obtain the local path to where the ECOTOX database is
(or will be) placed.
Usage
get_ecotox_sqlite_file(path = get_ecotox_path(), version)
get_ecotox_path()
Arguments
path |
When you have a copy of the database somewhere other than the default
directory ( |
version |
A |
Details
It can be useful to know where the database is located on your disk. This function
returns the location as provided by rappdirs::app_dir()
, or as
specified by you using options(ECOTOXr_path = "mypath")
.
Value
Returns a character
string of the path.
get_ecotox_path
will return the default directory of the database.
get_ecotox_sqlite_file
will return the path to the sqlite file when it exists.
Author(s)
Pepijn de Vries
See Also
Other database-access-functions:
check_ecotox_availability()
,
check_ecotox_build()
,
check_ecotox_version()
,
cite_ecotox()
,
dbConnectEcotox()
,
get_ecotox_info()
,
list_ecotox_fields()
Examples
get_ecotox_path()
if (check_ecotox_availability()) {
## This will only work if a local database exists:
get_ecotox_sqlite_file()
}