R/rd.R

Defines functions rd

Documented in rd

#' Run a drake project; unlock cache before
#' Simple helper to avoid the need to create run.R
#'
#' @keywords drake
#' @param unluck Unlock cache before running drake::r_make
#' @export

rd <- function(unlock = TRUE, ...) {

  source(here::here("_drake.R"))
  if(unlock) drake::drake_cache(here::here(".drake"))$unlock()
  drake::r_make(...)

}
matthiaskaeding/mt documentation built on Feb. 25, 2022, 10:24 a.m.