websearch_ecotox | R Documentation |
Functions to search and retrieve records from the on-line database at https://cfpub.epa.gov/ecotox/search.cfm.
websearch_ecotox(
fields = list_ecotox_web_fields(),
habitat = c("aquire", "terrestrial"),
verify_ssl = getOption("ECOTOXr_verify_ssl"),
...
)
list_ecotox_web_fields(...)
fields |
A named |
habitat |
Use |
verify_ssl |
When set to |
... |
In case of In case of |
The functions described here to search and retrieve records from the on-line database are experimental. This is because this feature is not formally supported by the EPA, and it may break in future iterations of the on-line database. The functions form an interface between R and the ECOTOX website and is therefore limited by its restrictions as described in the package documentation: ECOTOXr. The functions should therefore be used with caution.
Returns named list
of dplyr::tibbles with search results. Results are unpolished and ‘as is’ returned by EPA's web service.
list_ecotox_web_fields()
returns a named list with fields that can be used in a web search of EPA's ECOTOX database, using
websearch_ecotox()
.
IMPORTANT: when you plan to perform multiple adjacent searches (for instance in a loop), please insert a call to Sys.sleep()
.
This to avoid overloading the server and getting your IP address banned from the server.
Pepijn de Vries
Other search-functions:
search_ecotox()
,
websearch_comptox()
## Not run:
search_fields <-
list_ecotox_web_fields(
txAdvancedSpecEntries = "daphnia magna",
RBSPECSEARCHTYPE = "EXACT",
txAdvancedChemicalEntries = "benzene",
RBCHEMSEARCHTYPE = "EXACT")
search_results <- websearch_ecotox(search_fields)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.