Running ‘testthat.R’ [27s/60s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(deeptime)
  > 
  > test_check("deeptime")
  NULL
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (13)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-coord_geo.R:42:3): scales on different sides works ──────────────
  Error in `open.connection(file, "rt")`: cannot open the connection to 'https://macrostrat.org/api/v2/defs/intervals?format=csv&timescale=Geomagnetic%20Polarity%20Chron'
  Backtrace:
       █
    1. └─vdiffr::expect_doppelganger("scales on different sides", gg) test-coord_geo.R:42:2
    2.   └─vdiffr:::writer(fig, testcase, title)
    3.     ├─vdiffr:::print_plot(plot, title)
    4.     └─vdiffr:::print_plot.ggplot(plot, title)
    5.       ├─base::print(p)
    6.       └─ggplot2:::print.ggplot(p)
    7.         ├─ggplot2::ggplot_gtable(data)
    8.         └─ggplot2:::ggplot_gtable.ggplot_built(data)
    9.           └─layout$render(geom_grobs, data, theme, plot$labels)
   10.             └─ggplot2:::f(..., self = self)
   11.               └─self$facet$draw_panels(...)
   12.                 └─ggplot2:::f(...)
   13.                   └─coord$render_axis_v(range, theme)
   14.                     └─deeptime:::f(..., self = self)
   15.                       └─deeptime:::render_geo_scale(self, panel_params, theme, "left")
   16.                         └─base::mapply(...)
   17.                           └─(function (self, dat, fill, color, alpha, pos, lab, rot, abbrv, ...
   18.                             └─deeptime::getScaleData(dat)
   19.                               └─utils::read.csv(URL, header = TRUE, stringsAsFactors = FALSE)
   20.                                 └─utils::read.table(...)
   21.                                   ├─base::open(file, "rt")
   22.                                   └─base::open.connection(file, "rt")
  ── Error (test-coord_geo.R:53:3): scales on different sides works ──────────────
  Error in `open.connection(file, "rt")`: cannot open the connection to 'https://macrostrat.org/api/v2/defs/intervals?format=csv&timescale=Geomagnetic%20Polarity%20Chron'
  Backtrace:
       █
    1. └─vdiffr::expect_doppelganger("scales on different sides", gg) test-coord_geo.R:53:2
    2.   └─vdiffr:::writer(fig, testcase, title)
    3.     ├─vdiffr:::print_plot(plot, title)
    4.     └─vdiffr:::print_plot.ggplot(plot, title)
    5.       ├─base::print(p)
    6.       └─ggplot2:::print.ggplot(p)
    7.         ├─ggplot2::ggplot_gtable(data)
    8.         └─ggplot2:::ggplot_gtable.ggplot_built(data)
    9.           └─layout$render(geom_grobs, data, theme, plot$labels)
   10.             └─ggplot2:::f(..., self = self)
   11.               └─self$facet$draw_panels(...)
   12.                 └─ggplot2:::f(...)
   13.                   └─coord$render_axis_v(range, theme)
   14.                     └─deeptime:::f(..., self = self)
   15.                       └─deeptime:::render_geo_scale(self, panel_params, theme, "left")
   16.                         └─base::mapply(...)
   17.                           └─(function (self, dat, fill, color, alpha, pos, lab, rot, abbrv, ...
   18.                             └─deeptime::getScaleData(dat)
   19.                               └─utils::read.csv(URL, header = TRUE, stringsAsFactors = FALSE)
   20.                                 └─utils::read.table(...)
   21.                                   ├─base::open(file, "rt")
   22.                                   └─base::open.connection(file, "rt")
  
  [ FAIL 2 | WARN 2 | SKIP 13 | PASS 15 ]
  Deleting unused snapshots:
  * coord_geo/scale-on-all-facets.svg
  * coord_trans_xy/coord-trans-xy-with-expansion.svg
  * ggarrange2/double-ggarrange2-layout.svg
  * ggarrange2/double-ggarrange2.svg
  * ggarrange2/ggarrange2-layout.svg
  * ggarrange2/ggarrange2-with-layout-layout.svg
  * ggarrange2/ggarrange2-with-layout.svg
  * gggeo_scale/gggeo-scale-left-and-right.svg
  * gggeo_scale/gggeo-scale-top.svg
  Error: Test failures
  In addition: Warning messages:
  1: In for (j in seq_along(x)) { :
    closing unused connection 5 (https://macrostrat.org/api/v2/defs/intervals?format=csv&timescale=Geomagnetic%20Polarity%20Chron)
  2: In for (j in seq_along(x)) { :
    closing unused connection 4 (https://macrostrat.org/api/v2/defs/intervals?format=csv&timescale=Geomagnetic%20Polarity%20Chron)
  Execution halted