Skip to contents

[Stable] Checks the version of the database available on-line 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.

Value

Returns a logical value invisibly indicating whether the locally build is up to date with the latest release by the EPA.

Author

Pepijn de Vries

Examples

if (FALSE) { # \dontrun{
check_ecotox_version()
} # }