tests/testthat/test-bucket-methods.R

test_that("check bucket creation", {
  skip_if_no_env()
  path = s3_bucket_create(s3_file_temp("bucket"))

  result = s3_dir_ls()

  s3_bucket_delete(path)

  expect_true(path %in% result)
})

Try the s3fs package in your browser

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

s3fs documentation built on Sept. 11, 2024, 6:48 p.m.