mp_check_for_corpus_update | R Documentation |
mp_check_for_copus_update
checks if the currently cached version of corpus text and metadata
is older than the most recent version available via the Manifesto Project
DB API.
mp_check_for_corpus_update(apikey = NULL, only_stable = TRUE)
mp_which_corpus_version(cache_env = mp_cache())
mp_which_dataset_versions(cache_env = mp_cache())
mp_update_cache(apikey = NULL, only_stable = TRUE)
apikey |
API key to use. Defaults to |
only_stable |
Consider only for versions marked as stable by the Manifesto Projec Team, defaults to TRUE |
cache_env |
Cache environment |
mp_update_cache
checks if a new corpus version is available and loads
the new version via: mp_use_corpus_version
. That is,
the internal cache of manifestoR will automatically be updated to newer version
and all future calls to the API will request for the newer version.
Note that updating/downgrading the corpus version after having already
downloaded translated manifestos is not yet implemented and will result in
an error message.
Note that this versioning applies to the corpus' texts and metadata, and not the
versions of the core dataset. For this see mp_coreversions
mp_update_cache
returns a list with a boolean
update_available
and versionid
,
a character string identifying the most recent online version available
mp_which_corpus_version
returns the current version id of the
corpus and metadata stored in the cache
mp_which_dataset_versions
returns the names of the main dataset
versions which are in the cache, i.e. have been downloaded
mp_update_cache
returns the character identifier of the version updated to
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.