Join us for
RADAR: AI Edition

manifestoR (version 1.0-4)

mp_check_for_corpus_update: Check for Updates of Corpus in Manifesto Project DB

Description

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.

Usage

mp_check_for_corpus_update(apikey = NULL, only_stable = TRUE)

mp_which_corpus_version()

mp_update_cache(apikey = NULL, only_stable = TRUE)

Arguments

apikey
API key to use. Defaults to NULL, resulting in using the API key set via mp_setapikey.
only_stable
Consider only for versions marked as stable by the Manifesto Projec Team, defaults to TRUE

Value

  • 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_update_cache returns the character identifier of the version updated to

Details

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 this versioning applies to the corpus' texts and metadata, and not the versions of the core dataset. For this see mp_coreversions