check_ecotox_build {ECOTOXr} | R Documentation |
Check the locally build database for validity
Description
Performs some simple tests to check whether the locally built database is not corrupted.
Usage
check_ecotox_build(path = get_ecotox_path(), version, ...)
Arguments
path |
A |
version |
A |
... |
Arguments that are passed to |
Details
For now this function tests if all expected tables are present in the locally built
database. Note that in later release of the database some tables were added. Therefore
for older builds this function might return FALSE
whereas it is actually just fine
(just out-dated).
Furthermore, this function tests if all tables contain one or more records. Obviously, this is no guarantee that the database is valid, but it is a start.
More tests may be added in future releases.
Value
Returns an indicative logical value whether the database is not corrupted.
TRUE
indicates the database is most likely OK. FALSE
indicates that something might
be wrong. Additional messages (when FALSE
) are included as attributes containing hints
on the outcoming of the tests. See also the 'details' section.
Author(s)
Pepijn de Vries
Examples
## Not run:
check_ecotox_build()
## End(Not run)