opttest(expr, testname = NULL, testvar = "ENABLE_statnet_TESTS",
yesvals=c("y","yes","t","true","1"), lowercase=TRUE)
testvar
is set to a
non-empty value.yesvals
,
expr
is run. Otherwise, an optional message is printed.testvar
.testvar
to lower case before
comparing it to yesvals
.