Check if the locally build database is up to date
Source:R/database_access.r
check_ecotox_version.Rd
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.
Usage
check_ecotox_version(path = get_ecotox_path(), version, verbose = TRUE, ...)
Arguments
- path
When you have a copy of the database somewhere other than the default directory (
get_ecotox_path()
), you can provide the path here.- version
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.- verbose
A
logical
value. If true messages are shown on the console reporting on the check.- ...
Arguments passed to
get_ecotox_url()
Value
Returns a logical
value invisibly indicating whether the locally build
is up to date with the latest release by the EPA.
Examples
if (check_ecotox_availability()) {
check_ecotox_version()
}