check_ecotox_version: Check if the locally build database is up to date

View source: R/database_access.r

check_ecotox_versionR Documentation

Check if the locally build database is up to date

Description

[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(s)

Pepijn de Vries

Examples

## Not run: 
check_ecotox_version()

## End(Not run)

ECOTOXr documentation built on Sept. 20, 2024, 5:06 p.m.