Running ‘testthat.R’ [20s/65s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(BoneDensityMapping)
  > 
  > test_check("BoneDensityMapping")
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.1/test_CT_hip.nii.gz'
  Content type 'application/octet-stream' length 13813973 bytes (13.2 MB)
  ==================================================
  downloaded 13.2 MB
  
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.1/test_CT_hip.nii.gz'
  Content type 'application/octet-stream' length 13813973 bytes (13.2 MB)
  ==================================================
  downloaded 13.2 MB
  
  Error in vcgImport(surface_mesh_filepath) : object 'type' not found
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.1/test_CT_hip.nii.gz'
  Content type 'application/octet-stream' length 13813973 bytes (13.2 MB)
  ==================================================
  downloaded 13.2 MB
  
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.1/test_CT_hip.nii.gz'
  Content type 'application/octet-stream' length 13813973 bytes (13.2 MB)
  ==================================================
  downloaded 13.2 MB
  
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/SCAP001.stl'
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Content type 'application/octet-stream' length 2002384 bytes (1.9 MB)
  ==================================================
  downloaded 1.9 MB
  
  Removed 100113 duplicate 0 unreferenced vertices and 0 duplicate faces
  trying URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.1/test_CT_hip.nii.gz'
  Content type 'application/octet-stream' length 13813973 bytes (13.2 MB)
  ==================================================
  downloaded 13.2 MB
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 33 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-bone_scan_check.R:3:1'): (code run outside of `test_that()`) ───
  Error in `download.file(url, bone_filepath, mode = "wb")`: cannot open URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/test_CT_femur.stl'
  Backtrace:
      ▆
   1. └─utils::download.file(url, bone_filepath, mode = "wb") at test-bone_scan_check.R:3:1
  ── Error ('test-surface_points_new.R:3:1'): (code run outside of `test_that()`) ──
  Error in `download.file(url, bone_filepath, mode = "wb")`: cannot open URL 'https://github.com/Telfer/BoneDensityMapping/releases/download/v1.0.2/SCAP001.stl'
  Backtrace:
      ▆
   1. └─utils::download.file(url, bone_filepath, mode = "wb") at test-surface_points_new.R:3:1
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 33 ]
  Error: Test failures
  Execution halted