tests/testthat/test-config.R

context("config")

if (identical(Sys.getenv("TRAVIS"), "true")) {
  test_that("gcloud_config() can retrieve account and project from travis", {
    config <- gcloud_config()

    expect_true(!is.null(config$account))
    expect_true(!is.null(config$project))
  })
}

Try the cloudml package in your browser

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

cloudml documentation built on Sept. 4, 2019, 1:04 a.m.