ai_cache: Download an updated list of country, indicator, and source...

View source: R/ai_cache.R

ai_cacheR Documentation

Download an updated list of country, indicator, and source information

Description

Download an updated list of information regarding countries, indicators from the World Bank API, Numbers for Development API and No Celings

Usage

ai_cache(lang = c("en", "es", "fr", "ar", "zh"))

Arguments

lang

Language in which to return the results. If lang is unspecified, english is the default.

Value

A list containing the following items:

Note

Not all data returns have support for langauges other than english. If the specific return does not support your requested language by default it will return NA. The options for lang are:

  • en: English

  • es: Spanish

  • fr: French

  • ar: Arabic

  • zh: Mandarin

Saving this return and using it has the cache parameter in ai_search and ind_search replaces the default cached version ai_cachelist that comes with the package itself

Examples

# default is english. To specific another language use argument lang
ai_cache(lang = "es")

EL-BID/Agregador-de-indicadores documentation built on Sept. 15, 2024, 7:43 p.m.