library(package = "gchartsmap")
# set the cache path to a temp folder
gchartsmap::gchart_set_cache(path = tempdir())
# \donttest{
# save the cache path in a temporary folder
# if you want to save the cache path in your default .Renviron,
# use the default for path
gchartsmap::gchart_set_cache(
install = TRUE, path = tempdir(), overwrite = TRUE, home = tempdir()
)
# clean up
list.files(
tempdir(), all.files = TRUE, full.names = TRUE, pattern = ".Renv"
) |>
unlink()
# }
Run the code above in your browser using DataLab