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`"
}

Try the npm package in your browser

Any scripts or data that you put into this service are public.

npm documentation built on Jan. 19, 2022, 5:06 p.m.