R/use_dependencies.R

Defines functions use_dependencies

#' @keywords internal
use_dependencies <- function(project = ".") {
  proj <- normalizePath(project, mustWork = FALSE)

  withr::with_dir(proj, {
    file <- "scripts/_dependencies.R"
    if (!file.exists(file)) {
      file.create(file)
    } else {
      message(sprintf("\"%s\" already exists! Nothing was done!", file))
    }
  })
  invisible(TRUE)
}
umr1283/umr1283 documentation built on Nov. 27, 2022, 5:17 p.m.