R/checkIfAnyTs.R

Defines functions checkIfAnyTs

Documented in checkIfAnyTs

checkIfAnyTs <-
function(action = NULL, envirName = KTSEnv) {
  if (class(KTSEnv$dSList$TS) == "character") {
    eval(call(action), envir = envirName)
  } else {
    tcltk::tkmessageBox(message = paste("There is no time series",
                                        "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.