tests/testthat/helper.R

skip_if_no_token <- function() {
  tryCatch({
    nixtlar::.get_token()
  }, error = function(e) {
    testthat::skip("TIMEGPT_TOKEN is not set")
  })
}

Try the nixtlar package in your browser

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

nixtlar documentation built on Oct. 30, 2024, 5:07 p.m.