R/loadCountryList.R

Defines functions loadCountryList

Documented in loadCountryList

#' loadCountryList
#'
#' Just imports the list of countries, continents, and importer/exporter type.
#'
#' @return countries
#' @export

loadCountryList <- function(env = .GlobalEnv) {

    coffeestats::setDataDir()

    # Import the country-list csv as countries
    countries <- readr::read_csv(
        file = file.path(coffeestats, "country-list.csv"),
        na = ""
    )
    env$countries <- countries

}
tomcopple/coffeestats documentation built on May 24, 2019, 7:48 a.m.