Running ‘testthat.R’ [21s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(awsjavasdk)
  awsjavasdk did not detect its own copy of the AWS SDK. You must execute install_aws_sdk() in order to download the SDK and for the package to work as expected. If you've previously installed to a non-standard location, call set_sdk_file_root({{your alt_install root}}, confirm = TRUE) to point this package to that location and then run awsjavasdk::load_sdk()
  > 
  > test_check("awsjavasdk")
  trying URL 'https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip'
  Content type 'application/zip' length 585730871 bytes (558.6 MB)
  ==================================================
  downloaded 558.6 MB
  
  ── 1. Error: (unknown) (@test-awsjavasdk.R#37)  ────────────────────────────────
  no field, method or inner class called 'handled' 
  1: test_that("Alternate install location", {
         try(unlink(aws_sdk_root(), recursive = TRUE), silent = TRUE)
         alt_install <- paste0(tempdir(), "/awsjavasdk")
         not_empty_file <- paste0(alt_install, "/notempty")
         try(unlink(alt_install, recursive = TRUE), silent = TRUE)
         dir.create(alt_install)
         writeLines(LETTERS, not_empty_file)
         expect_error(install_aws_sdk(alt_install))
         set_sdk_file_root(alt_install, confirm = TRUE)
         expect_equal(alt_install, awsjavasdk:::.package_envir_get("sdk_file_root"))
         expect_true(install_aws_sdk(alt_install))
         expect_true(aws_sdk_present())
         load_sdk()
         expect_gt(nchar(rJava::J("com.amazonaws.util.VersionInfoUtils")$getVersion()), 
             0)
     }) at testthat/test-awsjavasdk.R:37
  2: test_code(desc, code, env = parent.frame())
  3: tryCatch(withCallingHandlers({
         eval(code, test_env)
         if (!handled && !is.null(test)) {
             skip_empty()
         }
     }, expectation = handle_expectation, skip = handle_skip, warning = handle_warning, 
         message = handle_message, error = handle_error), error = handle_fatal, skip = function(e) {
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  6: doTryCatch(return(expr), name, parentenv, handler)
  7: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: isTRUE(e$handled)
  11: e$handled
  12: `$.Throwable`(e, "handled")
  13: ._jobjRef_dollar(x[["jobj"]], name)
  14: stop(sprintf("no field, method or inner class called '%s' ", name))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 4 SKIPPED: 5 WARNINGS: 0 FAILED: 1
  1. Error: (unknown) (@test-awsjavasdk.R#37) 
  
  Error: testthat unit tests failed
  Execution halted