download_searches_results: Get the Encyclopedia Of Life pages for multiple taxa

Description Usage Arguments Value Author(s) See Also Examples

View source: R/download_searches_results.R

Description

Get the Encyclopedia Of Life pages for multiple taxa

Usage

1
2
download_searches_results(species_names, use_exact_name = TRUE,
  verbose = FALSE)

Arguments

species_names

names of one or more species

use_exact_name

do use the exact name

verbose

give more output

Value

a list with as much elements as taxon names. Each element is a data frame

Author(s)

Richel J.C. Bilderbeek

See Also

use download_search_results to search for one species

Examples

 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))

richelbilderbeek/aureole documentation built on March 4, 2020, 10:47 p.m.