Get data for animal projects, with options to filter results.
Usage
get_animal_projects(
credentials = list(username = Sys.getenv("ETN_USER"), password = Sys.getenv("ETN_PWD")),
animal_project_code = NULL
)Value
A tibble with animal project data, sorted by project_code. See
also
field definitions.
Examples
# Set credentials
credentials <- list(
username = Sys.getenv("ETN_USER"),
password = Sys.getenv("ETN_PWD")
)
# Get all animal projects
get_animal_projects(credentials)
#> Error: ODBC failed with error 00000 from [unixODBC][Driver Manager].
#> Failed to connect to the database.
#> Did you enter the right username/password?
#> Please try again.
# Get a specific animal project
get_animal_projects(credentials, animal_project_code = "2014_demer")
#> Error: ODBC failed with error 00000 from [unixODBC][Driver Manager].
#> Failed to connect to the database.
#> Did you enter the right username/password?
#> Please try again.
