This function queries REST Countries API and returns a list of all possible fields that can be used in the function country_info
.
NOTE: Internet access is needed to download information from the API.
Value
A vector of accepted fields for the function country_info()
Examples
# Run example only if a connection to the API is available
if (check_countries_api(warnings = FALSE)){
list_fields()
}
#> [1] "tld" "cca2" "ccn3" "cca3" "cioc"
#> [6] "independent" "status" "unMember" "capital" "altSpellings"
#> [11] "region" "subregion" "latlng" "landlocked" "borders"
#> [16] "area" "flag" "population" "fifa" "timezones"
#> [21] "continents" "startOfWeek" "name" "idd" "languages"
#> [26] "translations" "demonyms" "maps" "car" "flags"
#> [31] "coatOfArms" "capitalInfo" "postalCode" "gini" "currencies"