R/countryCodeList.R

Defines functions countryCodeList

countryCodeList <- function() {
  ### https://github.com/apilayer/restcountries
  res <- readLines("https://restcountries.eu/rest/v2/all",
                   warn=FALSE);
  res <- fromJSON(res);
  return(res$alpha2Code);
}
Matherion/metabefor documentation built on Nov. 8, 2019, 7:34 a.m.