sn_get_db_file: Gets location of cache file

View source: R/db.R

sn_get_db_fileR Documentation

Gets location of cache file

Description

Gets location of cache file

Usage

sn_get_db_file(type = "osm", country)

Arguments

type

Defaults to "item". Type of cache file to output. Values typically used by 'tidywikidatar' 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

Value

A character vector of length one with location of item cache file.

Examples


tw_set_cache_folder(path = tempdir())
sqlite_cache_file_location <- sn_get_db_file() # outputs location of cache file

giocomai/streetnamer documentation built on Oct. 14, 2023, 6:27 p.m.