Skip to contents

Gets location of cache file

Usage

rb_get_cache_file(
  filename = "rbackupr_cache.sqlite",
  cache_folder = rbackupr::rb_get_cache_folder()
)

Arguments

filename

Defaults to "rbackupr_cache.sqlite".

cache_folder

Defaults to folder set with `rb_set_cache_folder()`

Value

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

Examples


rb_set_cache_folder(path = tempdir())
#>      cache_folder 
#> "/tmp/RtmpRpF8Cy" 
sqlite_cache_file_location <- rb_get_cache_file() # outputs location of cache file
sqlite_cache_file_location
#> /tmp/RtmpRpF8Cy/rbackupr_cache.sqlite