Gets location of cache file
Usage
tw_get_cache_file(type = NULL, language = tidywikidatar::tw_get_language())
Arguments
- type
Defaults to NULL. Deprecated. If given, type of cache file to output. Values typically used by
tidywikidatar
in versions up to 4.2 include "item", "search", and "qualifier".- language
Defaults to language set with
tw_set_language()
; if not set, "en". Use "all_available" to keep all languages. For available language values, see https://www.wikidata.org/wiki/Help:Wikimedia_language_codes/lists/all
Examples
tw_set_cache_folder(path = tempdir())
sqlite_cache_file_location <- tw_get_cache_file() # outputs location of cache file