R/has-tests.R

Defines functions has_tests

Documented in has_tests

#' Was devtools installed with tests?
#'
#' @keywords internal
#' @export
has_tests <- function() {
  test_path <- tryCatch(
    path_package("devtools", "tests"),
    error = function(e) NULL
  )

  !is.null(test_path)
}
hadley/devtools documentation built on Aug. 30, 2024, 3:06 a.m.