get_ecotox_url: Get ECOTOX download URL from EPA website

View source: R/init.r

get_ecotox_urlR Documentation

Get ECOTOX download URL from EPA website

Description

[Stable] 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.

Usage

get_ecotox_url(...)

Arguments

...

arguments passed on to httr::GET()

Details

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](ssl_verifypeer = 0L) when the download URL is trusted.

Value

Returns a character string containing the download URL of the latest version of the EPA ECOTOX database.

Author(s)

Pepijn de Vries

Examples

## Not run: 
get_ecotox_url()

## End(Not run)

ECOTOXr documentation built on Jan. 9, 2023, 1:27 a.m.