Skip to contents

[Stable] Tests whether a local copy of the US EPA ECOTOX database exists in get_ecotox_path().

Usage

check_ecotox_availability(target = get_ecotox_path())

Arguments

target

A character string specifying the path where to look for the database file.

Value

Returns a logical value indicating whether a copy of the database exists. It also returns a files attribute that lists which copies of the database are found.

Details

When arguments are omitted, this function will look in the default directory (get_ecotox_path()). However, it is possible to build a database file elsewhere if necessary.

Author

Pepijn de Vries

Examples

check_ecotox_availability()
#> [1] FALSE
#> attr(,"files")
#> [1] path     database date    
#> <0 rows> (or 0-length row.names)