Running ‘testthat.R’ [3s/62s]
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 324500071 bytes (309.5 MB)
  ================================
  downloaded 198.2 MB
  
  1. Error: Alternate install location (@test-awsjavasdk.R#62) -------------------
  download from 'https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip' failed
  1: expect_true(install_aws_sdk(alt_install)) at testthat/test-awsjavasdk.R:62
  2: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.", lab), info = info)
  3: as.expectation(exp, ..., srcref = srcref)
  4: identical(as.vector(object), TRUE)
  5: as.vector(object)
  6: install_aws_sdk(alt_install)
  7: download.file("https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip", 
         tempzip)
  
  2. Error: sdk loads and is usable after a detach in an alternate location (@test-awsjavasdk.R#76) 
  class not found
  1: expect_gt(nchar(rJava::J("com.amazonaws.util.VersionInfoUtils")$getVersion()), 0) at testthat/test-awsjavasdk.R:76
  2: expect_compare(">", object, expected, label = label, expected.label = expected.label)
  3: stopifnot(is.numeric(actual), length(actual) == 1)
  4: nchar(rJava::J("com.amazonaws.util.VersionInfoUtils")$getVersion())
  5: rJava::J("com.amazonaws.util.VersionInfoUtils")
  6: jclassName(class)
  7: .jfindClass(as.character(class))
  8: stop("class not found")
  
  testthat results ================================================================
  OK: 4 SKIPPED: 5 FAILED: 2
  1. Error: Alternate install location (@test-awsjavasdk.R#62) 
  2. Error: sdk loads and is usable after a detach in an alternate location (@test-awsjavasdk.R#76) 
  
  Error: testthat unit tests failed
  Execution halted