R/PullSpp.fn.R

Defines functions PullSpp.fn

Documented in PullSpp.fn

#' Pull species names from the warehouse
#'
#' Pull common name and scientific name information from the
#' data warehouse.
#' The website is https://www.webapps.nwfsc.noaa.gov/data
#'
#' @author Kelli Faye Johnson
#' @export
#'
#' @examples
#' \dontrun{
#' spp <- PullSpp.fn()
#' }
#'
PullSpp.fn <- function() {
  # Get the data from saved .rda file
  PullSpp <- NULL
  newenv <- new.env(hash = TRUE, parent = parent.frame())
  utils::data(PullSpp, package = "nwfscSurvey", envir = newenv)
  PullSpp <- get("PullSpp", envir = newenv)
  return(PullSpp)
}
nwfsc-assess/nwfscSurvey documentation built on May 5, 2024, 5:21 a.m.