R/load_if_doesnt_exist.R

Defines functions load_if_doesnt_exist

load_if_doesnt_exist <- function(data) {
  if (!exists(data)) {
    source(paste0("data-raw/", data, ".R"))
  }
}
aftonsteps/rstardew documentation built on Oct. 11, 2021, 1:35 a.m.