Running ‘testthat.R’ [12s/84s]
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")
  i Query results limited to 1 out of 3144 available features.
  ! Cannot determine supported query formats.
  i Query results limited to 2 out of 209257 available features.
  i Query results limited to 999 out of 31568 available features.
  i Query results limited to 333 out of 31568 available features.
  [working] (0 + 0) -> 2 -> 1 | ==========>--------------------   33%
  [working] (0 + 0) -> 0 -> 3 | ==============================>  100%
  Reading layer `nc' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp' 
    using driver `ESRI Shapefile'
  Simple feature collection with 100 features and 14 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  Geodetic CRS:  NAD27
  Reading layer `nc' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp' 
    using driver `ESRI Shapefile'
  Simple feature collection with 100 features and 14 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  Geodetic CRS:  NAD27
  Reading layer `nc' from data source 
    `/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/sf/shape/nc.shp' 
    using driver `ESRI Shapefile'
  Simple feature collection with 100 features and 14 fields
  Geometry type: MULTIPOLYGON
  Dimension:     XY
  Bounding box:  xmin: -84.32385 ymin: 33.88199 xmax: -75.45698 ymax: 36.58965
  Geodetic CRS:  NAD27
  i Query results limited to 5 out of 30924 available features.
  i Query results limited to 10 out of 8174955 available features.
  i Query results limited to 1000 out of 4186 available features.
  i Query results limited to 10 out of 93 available features.
  i Query results limited to 3 out of 3144 available features.
  i Query results limited to 3 out of 3144 available features.
  i Query results limited to 3 out of 281 available features.
  i Query results limited to 3 out of 281 available features.
  i Query results limited to 10 out of 4186 available features.
  i Query results limited to 10 out of 4186 available features.
  i Query results limited to 100 out of 6033 available features.
  i Query results limited to 100 out of 6033 available features.
  ! Cannot determine supported query formats.
  i Query results limited to 10 out of 3044822 available features.
  ! Cannot determine supported query formats.
  i Query results limited to 1 out of 3044822 available features.
  ! Cannot determine supported query formats.
  i Query results limited to 1 out of 3044822 available features.
  [ FAIL 1 | WARN 1 | SKIP 67 | PASS 40 ]
  
  ══ Skipped tests (67) ══════════════════════════════════════════════════════════
  • 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:4:3',
    'test-update-fields.R:26:3', 'test-write-feature-layer.R:2:3',
    'test-write-feature-layer.R:15:3'
  • On CRAN (56): 'test-arc_open.R:5:3', 'test-arc_open.R:21:3',
    'test-arc_open.R:28:3', 'test-arc_open.R:34:3', 'test-arc_open.R:44:3',
    'test-arc_open.R:51:3', 'test-arc_open.R:57:3', 'test-arc_open.R:66:3',
    'test-arc_open.R:141:3', 'test-arc_open.R:146: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:23: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:9:3',
    'test-get-layer.R:14:3', 'test-get-layer.R:19:3', 'test-get-layer.R:24:3',
    'test-get-layer.R:40:3', 'test-get-layer.R:45:3', 'test-get-layer.R:55:3',
    'test-get-layer.R:60:3', 'test-get-layers.R:9:3', 'test-get-layers.R:20:3',
    'test-get-layers.R:26:3', 'test-get-layers.R:36:3', 'test-get-layers.R:42:3',
    'test-get-layers.R:51:3', 'test-get-layers.R:57:3', 'test-get-layers.R:67:3',
    'test-map-services.R:10:3'
  • empty test (1): 'test-encode-field-values.R:37:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-attachments.R:2:1'): (code run outside of `test_that()`) ───────
  Error in `as_layer_class(clear_url_query(url), token, layer_type)`: Status code: 499
  ErrorGWM_0003: Token Required
  ℹ Token Required
  Backtrace:
      ▆
   1. └─arcgislayers::arc_open(furl) at test-attachments.R:2:1
   2.   └─arcgislayers:::as_layer_class(clear_url_query(url), token, layer_type)
   3.     └─arcgisutils::fetch_layer_metadata(url, token)
   4.       └─arcgisutils::detect_errors(meta, error_call = call)
   5.         └─rlang::abort(e_msg, call = error_call)
  
  [ FAIL 1 | WARN 1 | SKIP 67 | PASS 40 ]
  Error: Test failures
  Execution halted