Running 'testthat.R' [3s/367s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(ALA4R)
  > 
  > ## run each test with and without caching
  > check_caching=function(f) {
  +     ala_config(caching="off")
  +     f()
  +     ala_config(caching="on")
  +     f()
  +     f()
  + }
  > 
  > test_check("ALA4R")
  -- 1. Error: NULL returned when no assertions present in input (@test-assertions
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  -- 2. Error: NULL returned when no assertions present in input (@test-assertions
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  -- 3. Error: NULL returned when no assertions present in input (@test-assertions
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:7
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  -- 4. Error: check_assertions checks class of input correctly (@test-assertions.
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:18
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  -- 5. Error: check_assertions checks class of input correctly (@test-assertions.
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:18
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  -- 6. Error: check_assertions checks class of input correctly (@test-assertions.
  HTTP status code 504 received.
    Either there was an error with the request, or the servers may be down (try again later). If this problem persists please notify the ALA4R maintainers by lodging an issue at https://github.com/AtlasOfLivingAustralia/ALA4R/issues/ or emailing support@ala.org.au
  1: expect_null(check_assertions(temp)) at testthat/test-assertions.R:18
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: check_assertions(temp)
  5: ala_fields("assertions", as_is = TRUE)
  6: cached_get(this_url, type = "json")
  7: download_to_file(url, outfile = this_outfile, binary_file = identical(type, "binary_filename"), 
         verbose = verbose, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error)
  8: check_status_code(status_code, on_redirect = on_redirect, on_client_error = on_client_error, 
         on_server_error = on_server_error, extra_info = diag_message)
  9: stop("HTTP status code ", xstatus, " received.\n", diag_msg)
  
  == testthat results  ===========================================================
  OK: 40 SKIPPED: 158 WARNINGS: 0 FAILED: 6
  1. Error: NULL returned when no assertions present in input (@test-assertions.R#7) 
  2. Error: NULL returned when no assertions present in input (@test-assertions.R#7) 
  3. Error: NULL returned when no assertions present in input (@test-assertions.R#7) 
  4. Error: check_assertions checks class of input correctly (@test-assertions.R#18) 
  5. Error: check_assertions checks class of input correctly (@test-assertions.R#18) 
  6. Error: check_assertions checks class of input correctly (@test-assertions.R#18) 
  
  Error: testthat unit tests failed
  Execution halted