tests/testthat/helper-skip_if_no_key.R

skip_if_no_key <- function() {
  skip_if(
    condition = !fredr_has_key(),
    message = "FRED API key is not set."
  )
}

Try the fredr package in your browser

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

fredr documentation built on Jan. 30, 2021, 1:06 a.m.