R/yf_cache.R

Defines functions yf_cachefolder_get

Documented in yf_cachefolder_get

#' Returns the default folder for caching
#'
#' By default, yfR uses a temp dir to store files.
#'
#' @return a path (string)
#' @export
#'
#' @examples
#' print(yf_cachefolder_get())
yf_cachefolder_get <- function() {

  path_cache <- file.path(tempdir(), "yf_cache")

  return(path_cache)
}

Try the yfR package in your browser

Any scripts or data that you put into this service are public.

yfR documentation built on Feb. 16, 2023, 9:47 p.m.