R/utils.R

Defines functions cemrepboot_file app_error

app_error = function(message, call = NULL, ...) {
  err = structure(
    list(
      message = message,
      call = call,
      ...
    ),
    class = c("cemrepboot.error", "error", "condition")
  )
  stop(err)
}

cemrepboot_file = function(..., mustWork = TRUE) {
  system.file(..., package = "cemrepboot", mustWork = mustWork)
}
tomicapretto/cemrepboot documentation built on Dec. 31, 2020, 8:43 a.m.