Learn R Programming

gchartsmap (version 1.0.1)

gchart_get_cache_path: Get the cache path

Description

Get the saved cache path

Usage

gchart_get_cache_path(path = NULL)

Value

Returns the path to the local cache as set in the `R_GOOGLE_CHART_CACHE` environment variable. If that is not set, gets the system's default cache path for the package as provided by `tools::R_user_dir()`.

Arguments

path

Path to use as cache

Examples

Run this code

library(package = "gchartsmap")

# set the cache path to a temp folder
gchartsmap::gchart_set_cache(path = tempdir())

# check the set cache
gchartsmap::gchart_get_cache_path()

Run the code above in your browser using DataLab