R/assertions.R

Defines functions does_exist

Documented in does_exist

#' Assertions
#' 
#' @keywords internal
does_exist <- function(x){
  length(x) > 0
}

assertthat::on_failure(does_exist) <- function(call, env){
  "Cannot find path to npm, see `npm_path_set`"
}
JohnCoene/npm documentation built on Feb. 1, 2024, 12:30 a.m.