tests/testthat/test-class_database_gcp.R

tar_test("validate GCP database", {
  skip_if_not_installed("googleCloudStorageR")
  out <- database_init(
    repository = "gcp",
    resources = tar_resources(
      gcp = tar_resources_gcp(bucket = "x", prefix = "x")
    )
  )
  expect_silent(out$validate())
})

Try the targets package in your browser

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

targets documentation built on Oct. 12, 2023, 5:07 p.m.