Checks the version of the database available online
from the EPA against the specified version (latest by default) of the database build
locally. Returns
TRUE
when they are the same.
check_ecotox_version(path = get_ecotox_path(), version, verbose = TRUE, ...)
Returns a logical
value invisibly indicating whether the locally build
is up to date with the latest release by the EPA.
When you have a copy of the database somewhere other than the default
directory (get_ecotox_path()
), you can provide the path here.
A character
string referring to the release version of the database you wish to locate.
It should have the same format as the date in the EPA download link, which is month, day, year, separated by
underscores ("%m_%d_%Y"). When missing, the most recent available copy is selected automatically.
A logical
value. If true messages are shown on the console reporting
on the check.
Arguments passed to get_ecotox_url()
Pepijn de Vries
Other database-access-functions:
check_ecotox_availability()
,
check_ecotox_build()
,
cite_ecotox()
,
dbConnectEcotox()
,
get_ecotox_info()
,
get_ecotox_sqlite_file()
,
list_ecotox_fields()
Other database-build-functions:
build_ecotox_sqlite()
,
check_ecotox_build()
,
download_ecotox_data()
,
get_ecotox_url()
if (check_ecotox_availability()) {
check_ecotox_version()
}
Run the code above in your browser using DataLab