Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(logib)
  > 
  > test_check("logib")
  trying URL 'https://logib.admin.ch/assets/Data/Beispiel_Datenblatt_M1.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 33095 bytes (32 KB)
  ==================================================
  downloaded 32 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Exemple_feuille_de_donn%C3%A9es_M1.xlsx'
  trying URL 'https://logib.admin.ch/assets/Data/Esempio_foglio_di_dati_M1.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 33852 bytes (33 KB)
  ==================================================
  downloaded 33 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Example_data_sheet_M1.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 33840 bytes (33 KB)
  ==================================================
  downloaded 33 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Example_data_sheet_M1.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 33840 bytes (33 KB)
  ==================================================
  downloaded 33 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Datalist_d.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 11677 bytes (11 KB)
  ==================================================
  downloaded 11 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Datalist_f.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 12401 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Datalist_i.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 12866 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
  trying URL 'https://logib.admin.ch/assets/Data/Datalist_e.xlsx'
  Content type 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' length 12874 bytes (12 KB)
  ==================================================
  downloaded 12 KB
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 10 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-analysis.R:62:3'): analysis() returns the correct results using downloaded example data FR ──
  Error in `utils::download.file(url, file, mode = "wb")`: cannot open URL 'https://logib.admin.ch/assets/Data/Exemple_feuille_de_donn%C3%A9es_M1.xlsx'
  Backtrace:
      ▆
   1. └─logib::download_example_datalist(...) at test-analysis.R:62:3
   2.   └─utils::download.file(url, file, mode = "wb")
  ── Failure ('test-download.R:6:3'): The included example file is identical to the downloaded example file ──
  all(datalist_example == data, na.rm = TRUE) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 2 | WARN 1 | SKIP 0 | PASS 10 ]
  Error: Test failures
  Execution halted