Description Usage Arguments Value Author(s) See Also Examples
View source: R/download_searches_results.R
Get the Encyclopedia Of Life pages for multiple taxa
1 2 | download_searches_results(species_names, use_exact_name = TRUE,
verbose = FALSE)
|
species_names |
names of one or more species |
use_exact_name |
do use the exact name |
verbose |
give more output |
a list with as much elements as taxon names. Each element is a data frame
Richel J.C. Bilderbeek
use download_search_results to search for one species
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | library(testthat)
species_names <- c("Homo sapiens", "Pan troglodytes")
results <- download_searches_results(species_names)
expect_equal(class(results), "list")
expect_equal(length(results), length(species_names))
df <- results[[1]]
expect_equal(class(df), "data.frame")
expect_true("id" %in% names(df))
expect_true("title" %in% names(df))
expect_true("link" %in% names(df))
expect_true("content" %in% names(df))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.