#' List all available scientific names
#'
#' @param connection A connection to the ETN database. Defaults to `con`.
#'
#' @return A vector of all unique `scientific_name` present in
#' `common.animal_release`.
#'
#' @export
list_scientific_names <- function(connection = con) {
query <- glue::glue_sql(
"SELECT DISTINCT scientific_name FROM common.animal_release",
.con = connection
)
data <- DBI::dbGetQuery(connection, query)
sort(data$scientific_name)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.