This function downloads the webpage at https://cfpub.epa.gov/ecotox/index.cfm. It then searches for the
download link for the complete ECOTOX database and extract its URL.
get_ecotox_url(verify_ssl = getOption("ECOTOXr_verify_ssl"), ...)
Returns a character
string containing the download URL of the latest version of the EPA ECOTOX
database.
When set to FALSE
the SSL certificate of the host (EPA)
is not verified. Can also be set as option:
options(ECOTOXr_verify_ssl = TRUE)
. Default is TRUE
.
arguments passed on to httr2::req_options()
Pepijn de Vries
This function is called by download_ecotox_data()
which tries to download the file from the resulting
URL. On some machines this fails due to issues with the SSL certificate. The user can try to download the file
by using this URL in a different browser (or on a different machine). Alternatively, the user could try to use
[download_ecotox_data](verify_ssl = FALE)
when the download URL is trusted.
Other database-build-functions:
build_ecotox_sqlite()
,
check_ecotox_build()
,
check_ecotox_version()
,
download_ecotox_data()
Other online-functions:
download_ecotox_data()
,
websearch_ecotox()
if (interactive()) {
get_ecotox_url()
}
Run the code above in your browser using DataLab