Detect whether the user is specifically checking UAT issues
Source:R/ExpectUserAccepts.R
IsCheckingUAT.RdChecks the value of an environment variable (default: qcthat_UAT) to
determine if the user is intentionally checking user-acceptance tests.
Value
TRUE if the specified environment variable is set to "TRUE"
(case-insensitive), FALSE otherwise.
Examples
CurrentValue <- Sys.getenv("qcthat_UAT")
Sys.setenv(qcthat_UAT = "")
IsCheckingUAT()
#> [1] FALSE
Sys.setenv(qcthat_UAT = "true")
IsCheckingUAT()
#> [1] TRUE
Sys.setenv(qcthat_UAT = CurrentValue)