R/go_to_cache.R

Defines functions go_to_cache

Documented in go_to_cache

#' @title Go to cache
#'
#' @description This function goes to cache
#'
#' @param dir Directory
#'
#' @return Goes to cache
#'
#' @export
#'
#' @examples NULL
go_to_cache <- function(dir = ".tima") {
  cache <- fs::path_home(dir)
  fs::dir_create(cache)
  message("Working in ", cache)
  setwd(dir = cache)
}
taxonomicallyinformedannotation/tima-r documentation built on Nov. 20, 2024, 4:34 a.m.