R/checkIfAny.R

Defines functions checkIfAny

Documented in checkIfAny

checkIfAny <-
function(action = NULL, envirName = KTSEnv) {
  if (class(c(KTSEnv$dSList$TS, KTSEnv$dSList$gaps, 
              KTSEnv$dSList$rm)) == "character") {
    eval(call(action), envir = envirName)
  } else {
    tcltk::tkmessageBox(message = paste("There are not any data",
                                        "sets in the environment"), 
                        icon = "warning")
    loadAllTypes()
  }
}

Try the KarsTS package in your browser

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

KarsTS documentation built on Jan. 16, 2021, 5:07 p.m.