download_search_results: Get the Encyclopedia Of Life page for a certain species

Description Usage Arguments Value See Also Examples

View source: R/download_search_results.R

Description

Get the Encyclopedia Of Life page for a certain species

Usage

1
2
download_search_results(species_name, use_exact_name = TRUE,
  verbose = FALSE)

Arguments

species_name

name of the species

use_exact_name

only return an EOL page if the species name matches exactly

verbose

be verbose

Value

a data frame with columns id, title, link and description

See Also

use download_searches_results to search for more than one species

Examples

1
2
3
4
5
6
7
8
9
library(testthat)

df <- download_search_results(species_name = "Homo sapiens")

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.