R/hud_skip_if_no_key.R

Defines functions skip_if_no_key

Documented in skip_if_no_key

#' @import testthat

#' @name rhud_website
#' @title Access RHUD Web Resources
#' @description Quickly get documentation for the rhud package by opening up
#'   the websites associated with it.
skip_if_no_key <- function() {
  if (Sys.getenv("HUD_KEY") == "") {
    testthat::skip("The HUD_KEY variable is empty: will not run the test.")
  }
}
etam4260/rhud documentation built on Nov. 12, 2022, 2:53 a.m.