R/utils.R

Defines functions tsibbledata_path

#' @importFrom rappdirs user_data_dir
tsibbledata_path <- function(...){
  path <- file.path(
    paste0(
      getOption("tsibbledata.path", default = rappdirs::user_data_dir("rpkg_tsibbledata")),
      .Platform$file.sep
    ),
    ...
  )
  dir.exists(dirname(path)) || dir.create(dirname(path), recursive = TRUE)
  path
}

Try the tsibbledata package in your browser

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

tsibbledata documentation built on Sept. 1, 2022, 5:09 p.m.