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