Running 'testthat.R' [5s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > library(testthat)
  > library(arcgislayers)
  > 
  > test_check("arcgislayers")
  Saving _problems/test-unset-token-4.R
  Saving _problems/test-unset-token-10.R
  [ FAIL 2 | WARN 0 | SKIP 99 | PASS 0 ]
  
  ══ Skipped tests (99) ══════════════════════════════════════════════════════════
  • Must be ran interactively (10): 'test-adding-features.R:2:3',
    'test-adding-features.R:50:3', 'test-adding-features.R:67:3',
    'test-create-feature-service.R:2:3', 'test-definition.R:2:3',
    'test-delete-feats.R:2:3', 'test-update-fields.R:2:3',
    'test-update-fields.R:24:3', 'test-write-feature-layer.R:2:3',
    'test-write-feature-layer.R:15:3'
  • On CRAN (89): 'test-arc-select-respect-crs.R:2:3', 'test-arc_open.R:5:3',
    'test-arc_open.R:22:3', 'test-arc_open.R:30:3', 'test-arc_open.R:37:3',
    'test-arc_open.R:48:3', 'test-arc_open.R:56:3', 'test-arc_open.R:63:3',
    'test-arc_open.R:73:3', 'test-arc_open.R:149:3', 'test-arc_open.R:155:3',
    'test-arc_raster.R:2:3', 'test-arc_read.R:2:3', 'test-arc_read.R:13:3',
    'test-arc_read.R:33:3', 'test-arc_read.R:61:3', 'test-arc_read.R:69:3',
    'test-arc_read.R:80:3', 'test-arc_read.R:92:3', 'test-arc_read.R:98:3',
    'test-arc_read.R:106:3', 'test-arc_read.R:119:3', 'test-arc_read.R:126:3',
    'test-arc_read.R:138:3', 'test-arc_read.R:147:3', 'test-arc_read.R:156:3',
    'test-arc_read.R:164:3', 'test-arc_read.R:170:3', 'test-arc_read.R:176:3',
    'test-arc_read.R:183:3', 'test-arc_read.R:189:3', 'test-arc_read.R:196:3',
    'test-arc_read.R:203:3', 'test-arc_read.R:234:3', 'test-arc_select.R:2:3',
    'test-arc_select.R:11:3', 'test-arc_select.R:20:3', 'test-arc_select.R:31:3',
    'test-arc_select.R:42:3', 'test-arc_select.R:54:3', 'test-arc_select.R:70:3',
    'test-arc_select.R:140:3', 'test-arc_select.R:158:3',
    'test-attachments.R:2:3', 'test-attachments.R:12:3',
    'test-attachments.R:22:3', 'test-attachments.R:31:3',
    'test-attachments.R:45:3', 'test-date-parsing.R:2:3',
    'test-empty-services.R:2:3', 'test-encode-field-values.R:2:3',
    'test-encode-field-values.R:21:3', 'test-get-all-layers.R:2:3',
    'test-get-all-layers.R:9:3', 'test-get-all-layers.R:18:3',
    'test-get-all-layers.R:26:3', 'test-get-layer.R:4:3',
    'test-get-layer.R:14:3', 'test-get-layer.R:24:3', 'test-get-layer.R:39:3',
    'test-get-layer.R:53:3', 'test-get-layer.R:65:3', 'test-get-layer.R:80:3',
    'test-get-layer.R:88:3', 'test-get-layers.R:2:3', 'test-get-layers.R:14:3',
    'test-get-layers.R:28:3', 'test-get-layers.R:42:3', 'test-get-layers.R:57:3',
    'test-get-layers.R:67:3', 'test-get-layers.R:78:3', 'test-get-layers.R:88:3',
    'test-get-layers.R:99:3', 'test-map-services.R:2:3',
    'test-map-services.R:17:3', 'test-page-size.R:2:3', 'test-pbf.R:2:3',
    'test-pbf.R:15:3', 'test-pbf.R:24:3', 'test-raster-fns.R:2:3',
    'test-raster-fns.R:25:3', 'test-return-geometry.R:2:3',
    'test-return-geometry.R:15:3', 'test-returned-fields.R:5:3',
    'test-returned-fields.R:14:3', 'test-returned-fields.R:26:3',
    'test-returned-fields.R:38:3', 'test-returned-fields.R:54:3',
    'test-returned-fields.R:76:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-unset-token.R:4:3'): Error reported when token is required (FeatureServer) ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `as_layer_class(clear_url_query(url), token, layer_type)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL connect error [services1.arcgis.com]:
  Recv failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_error(arc_open(fsurl), "Status code: 499") at test-unset-token.R:4:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─arcgislayers::arc_open(fsurl)
    8.   └─arcgislayers:::as_layer_class(clear_url_query(url), token, layer_type)
    9.     └─arcgisutils::fetch_layer_metadata(url, token)
   10.       ├─httr2::resp_body_string(httr2::req_perform(req, error_call = call))
   11.       │ └─httr2:::check_response(resp)
   12.       │   └─httr2:::is_response(resp)
   13.       └─httr2::req_perform(req, error_call = call)
   14.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   15.           └─rlang::cnd_signal(resp)
  ── Error ('test-unset-token.R:10:3'): Error reported for invalid url (FeatureLayer) ──
  <httr2_failure/httr2_error/rlang_error/error/condition>
  Error in `as_layer_class(clear_url_query(url), token, layer_type)`: Failed to perform HTTP request.
  Caused by error in `curl::curl_fetch_memory()`:
  ! SSL connect error [services1.arcgis.com]:
  Recv failure: Connection was reset
  Backtrace:
       ▆
    1. ├─testthat::expect_error(arc_open(fsurl), "Status code: 499") at test-unset-token.R:10:3
    2. │ └─testthat:::expect_condition_matching_(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. └─arcgislayers::arc_open(fsurl)
    8.   └─arcgislayers:::as_layer_class(clear_url_query(url), token, layer_type)
    9.     └─arcgisutils::fetch_layer_metadata(url, token)
   10.       ├─httr2::resp_body_string(httr2::req_perform(req, error_call = call))
   11.       │ └─httr2:::check_response(resp)
   12.       │   └─httr2:::is_response(resp)
   13.       └─httr2::req_perform(req, error_call = call)
   14.         └─httr2:::handle_resp(req, resp, error_call = error_call)
   15.           └─rlang::cnd_signal(resp)
  
  [ FAIL 2 | WARN 0 | SKIP 99 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted