tests/testthat.R

library(testthat)

KBC_DATA_DIR <- '/data/'

# override with config if any
if (file.exists("config.R")) {
  source("config.R")
}

# override with environment if any
if (nchar(Sys.getenv("KBC_DATA_DIR")) > 0) {
  KBC_DATA_DIR <- Sys.getenv("KBC_DATA_DIR")
}

test_check("keboola.r.custom.application.example.package")
keboola/r-custom-application-example-package documentation built on May 20, 2019, 8:34 a.m.