Running ‘skip-heavy.R’
  Running ‘testthat.R’ [36s/84s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pct)
  > 
  > test_check("pct")
  trying URL 'https://s3-eu-west-1.amazonaws.com/statistics.digitalresources.jisc.ac.uk/dkan/files/FLOW/wu03ew_v2/wu03ew_v2.zip'
  Content type 'application/zip' length 12409884 bytes (11.8 MB)
  ==================================================
  downloaded 11.8 MB
  
  trying URL 'https://s3-eu-west-1.amazonaws.com/statistics.digitalresources.jisc.ac.uk/dkan/files/FLOW/wu03ew_v2/wu03ew_v2.zip'
  Content type 'application/zip' length 12409884 bytes (11.8 MB)
  ==================================================
  downloaded 11.8 MB
  
  ── 1. Error: get_desire_lines works (@test-desire_lines.R#10)  ─────────────────
  !anyNA(x) is not TRUE
  1: expect_true(nrow(get_desire_lines(region = "isle", omit_intrazonal = TRUE)) > 10) at testthat/test-desire_lines.R:10
  2: quasi_label(enquo(object), label, arg = "object")
  3: eval_bare(get_expr(quo), get_env(quo))
  4: nrow(get_desire_lines(region = "isle", omit_intrazonal = TRUE))
  5: get_desire_lines(region = "isle", omit_intrazonal = TRUE)
  6: stplanr::od2line(flow = od, zones)
  7: od2line.sf(flow = od, zones)
  8: od_coords2line(odm, crs = sf::st_crs(zones))
  9: lapply(seq(nrow(odm)), function(i) {
         sf::st_linestring(rbind(odm[i, 1:2], odm[i, 3:4]))
     })
  10: FUN(X[[i]], ...)
  11: sf::st_linestring(rbind(odm[i, 1:2], odm[i, 3:4]))
  12: Mtrx(x, dim, type = "LINESTRING")
  13: valid_numeric_matrix(x)
  14: stopifnot(is.numeric(x), is.matrix(x), !anyNA(x))
  
  trying URL 'https://github.com/npct/pct-outputs-regional-R/raw/master/commute/msoa/isle-of-wight/z.Rds'
  Content type 'application/octet-stream' length 14913 bytes (14 KB)
  ==================================================
  downloaded 14 KB
  
  trying URL 'https://github.com/npct/pct-outputs-regional-R/raw/master/commute/msoa/isle-of-wight/c.Rds'
  Content type 'application/octet-stream' length 6534 bytes
  ==================================================
  downloaded 6534 bytes
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 17 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: get_desire_lines works (@test-desire_lines.R#10) 
  
  Error: testthat unit tests failed
  Execution halted