Running ‘testthat.R’ [2s/227s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgfilecache)
  > 
  > test_check("pkgfilecache")
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file2.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  ── 1. Failure: We can download files to a local dir without MD5 check. (@test-fi
  res$file_status not equal to c(TRUE, TRUE).
  2 element mismatches
  
  ── 2. Failure: We can download files to a local dir without MD5 check. (@test-fi
  length(res$available) not equal to 2L.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  ── 3. Failure: We can download files to a local dir without MD5 check. (@test-fi
  length(res$missing) not equal to 0L.
  1/1 mismatches
  [1] 2 - 0 == 2
  
  ── 4. Failure: We can download files to a local dir without MD5 check. (@test-fi
  res$available[1] not equal to "local_file1.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file1.txt"
  
  ── 5. Failure: We can download files to a local dir without MD5 check. (@test-fi
  res$available[2] not equal to "local_file2.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file2.txt"
  
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file2.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  ── 6. Failure: We can erase the file cache and list all files in the cache (@tes
  res$file_status not equal to c(TRUE, TRUE).
  2 element mismatches
  
  ── 7. Failure: We can erase the file cache and list all files in the cache (@tes
  length(files_in_cache) not equal to 2.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  ── 8. Failure: We can erase the file cache and list all files in the cache (@tes
  "local_file1.txt" %in% files_in_cache isn't true.
  
  ── 9. Failure: We can erase the file cache and list all files in the cache (@tes
  "local_file2.txt" %in% files_in_cache isn't true.
  
  ── 10. Failure: We can erase the file cache and list all files in the cache (@te
  length(res$available) not equal to 2L.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  ── 11. Failure: We can erase the file cache and list all files in the cache (@te
  length(res$missing) not equal to 0L.
  1/1 mismatches
  [1] 2 - 0 == 2
  
  ── 12. Failure: We can erase the file cache and list all files in the cache (@te
  res$available[1] not equal to "local_file1.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file1.txt"
  
  ── 13. Failure: We can erase the file cache and list all files in the cache (@te
  res$available[2] not equal to "local_file2.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file2.txt"
  
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1_whatever.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/another_file2.some.ext' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file2.txt'
  ── 14. Failure: We can download files to a local dir with MD5 check. (@test-file
  res$file_status not equal to c(TRUE, TRUE).
  2 element mismatches
  
  ── 15. Failure: We can download files to a local dir with MD5 check. (@test-file
  length(res$available) not equal to 2L.
  1/1 mismatches
  [1] 0 - 2 == -2
  
  ── 16. Failure: We can download files to a local dir with MD5 check. (@test-file
  length(res$missing) not equal to 0L.
  1/1 mismatches
  [1] 2 - 0 == 2
  
  ── 17. Failure: We can download files to a local dir with MD5 check. (@test-file
  res$available[1] not equal to "local_file1_whatever.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file1_whatever.txt"
  
  ── 18. Failure: We can download files to a local dir with MD5 check. (@test-file
  res$available[2] not equal to "another_file2.some.ext".
  1/1 mismatches
  x[1]: NA
  y[1]: "another_file2.some.ext"
  
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/will_not_make_it.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  ── 19. Failure: Files that cannot be downloaded will be reported as failed. (@te
  res$file_status not equal to c(TRUE, FALSE).
  1 element mismatch
  
  ── 20. Failure: Files that cannot be downloaded will be reported as failed. (@te
  length(res$available) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 21. Failure: Files that cannot be downloaded will be reported as failed. (@te
  length(res$missing) not equal to 1L.
  1/1 mismatches
  [1] 2 - 1 == 1
  
  ── 22. Failure: Files that cannot be downloaded will be reported as failed. (@te
  res$available[1] not equal to "local_file1.txt".
  1/1 mismatches
  x[1]: NA
  y[1]: "local_file1.txt"
  
  ── 23. Failure: Files that cannot be downloaded will be reported as failed. (@te
  res$missing[1] not equal to "will_not_make_it.txt".
  1/1 mismatches
  x[1]: "local_file1.txt"
  y[1]: "will_not_make_it.txt"
  
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/will_not_make_it.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/will_not_make_it.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  Download file to '/home/hornik/.local/share/pkgfilecache/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  ── 24. Failure: One can get a file from package cache that exists (@test-filecac
  res$file_status not equal to c(TRUE).
  1 element mismatch
  
  ── 25. Failure: One can get a file from package cache that exists (@test-filecac
  length(res$available) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 26. Failure: One can get a file from package cache that exists (@test-filecac
  length(res$missing) not equal to 0L.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  ── 27. Error: One can get a file from package cache that exists (@test-filecache
  File 'local_file1.txt' (from 'local_file1.txt') does not exist in local package cache at '/home/hornik/.local/share/pkgfilecache/local_file1.txt', and mustWork is TRUE.
  Backtrace:
   1. pkgfilecache::get_filepath(pkg_info, testfile_local, mustWork = TRUE)
  
  Download file to '/home/hornik/.local/share/pkgfilecache/x86_64-pc-linux-gnu/x86_64/linux-gnu/x86_64, linux-gnu/Under development (unstable)/4/1.0/2020/04/01/78134/R/R Under development (unstable) (2020-04-01 r78134)/Unsuffered Consequences/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  ── 28. Failure: Using package version and author works (@test-filecache.R#279)  
  res$file_status not equal to c(TRUE).
  1 element mismatch
  
  ── 29. Failure: Using package version and author works (@test-filecache.R#280)  
  length(res$available) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 30. Failure: Using package version and author works (@test-filecache.R#281)  
  length(res$missing) not equal to 0L.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  Download file to '/home/hornik/.local/share/pkgfilecache/dir1/local_file1.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/file1.txt'
  Download file to '/home/hornik/.local/share/pkgfilecache/dir2/will_not_make_it.txt' from 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  trying URL 'https://raw.githubusercontent.com/dfsp-spirit/pkgfilecache/master/inst/extdata/nosuchfile'
  ── 31. Failure: Storing a file in a subdirectory of the package cache works (@te
  file.exists(file.path(cache_dir, "dir1", "local_file1.txt")) isn't true.
  
  ── 32. Failure: Storing a file in a subdirectory of the package cache works (@te
  res$file_status not equal to c(TRUE, FALSE).
  1 element mismatch
  
  ── 33. Failure: Storing a file in a subdirectory of the package cache works (@te
  length(res$available) not equal to 1L.
  1/1 mismatches
  [1] 0 - 1 == -1
  
  ── 34. Failure: Storing a file in a subdirectory of the package cache works (@te
  length(res$missing) not equal to 1L.
  1/1 mismatches
  [1] 2 - 1 == 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 53 | SKIPPED: 0 | WARNINGS: 8 | FAILED: 34 ]
  1. Failure: We can download files to a local dir without MD5 check. (@test-filecache.R#32) 
  2. Failure: We can download files to a local dir without MD5 check. (@test-filecache.R#33) 
  3. Failure: We can download files to a local dir without MD5 check. (@test-filecache.R#34) 
  4. Failure: We can download files to a local dir without MD5 check. (@test-filecache.R#35) 
  5. Failure: We can download files to a local dir without MD5 check. (@test-filecache.R#36) 
  6. Failure: We can erase the file cache and list all files in the cache (@test-filecache.R#70) 
  7. Failure: We can erase the file cache and list all files in the cache (@test-filecache.R#72) 
  8. Failure: We can erase the file cache and list all files in the cache (@test-filecache.R#73) 
  9. Failure: We can erase the file cache and list all files in the cache (@test-filecache.R#74) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted