tests/testthat/helper.R

RAQSAPItestsetup_helper <- function()
{
  path <- NA
  if(file.exists("local.R")) {path <-  "./"}
  else if(file.exists("tests/testthat/local.R")) {path <- "tests/testthat/"}

  if(!is.na(path))
  {
    source(paste0(path, "local.R"))
    AQScredentials <- RAQSAPItestsetup_local()
    datamartAPI_user <- AQScredentials$AQSusername
    datamartAPI_key <- AQScredentials$AQSkey
    AQScredentials <- list(datamartAPI_user = datamartAPI_user,
                           datamartAPI_key = datamartAPI_key)
    return(AQScredentials)
  }
}

Try the RAQSAPI package in your browser

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

RAQSAPI documentation built on June 22, 2024, 6:58 p.m.