Running ‘testthat.R’ [26s/206s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(scopr)
  Loading required package: behavr
  Loading required package: data.table
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > 
  > test_check("scopr")
    machine_name       date     time test
  1        E_014 2016-01-25 21:36:04    1
  2        E_014 2016-02-17     <NA>    2
  3        E_029 2016-01-25     <NA>    3
  Saving _problems/test-link_ethoscope_metadata_remote-18.R
  Saving _problems/test-link_ethoscope_metadata_remote-55.R
  Saving _problems/test-list_result_files-31.R
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 45 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-link_ethoscope_metadata_remote.R:14:3'): link_ethoscope_metadata_remote with date and machine name ──
  Error in `value[[3L]](cond)`: Could not find index file: https://raw.githubusercontent.com/rethomics/scopr/master/inst/extdata/ethoscope_results/index.txt
  Backtrace:
      ▆
   1. └─scopr:::link_ethoscope_metadata_remote(...) at test-link_ethoscope_metadata_remote.R:14:3
   2.   └─scopr:::build_query(result_dir = remote_dir, query = query, index_file = index_file)
   3.     └─scopr::list_result_files(result_dir, index_file)
   4.       └─base::tryCatch(...)
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test-link_ethoscope_metadata_remote.R:51:3'): parse_query with date, machine name, and ROIs ──
  Error in `value[[3L]](cond)`: Could not find index file: https://raw.githubusercontent.com/rethomics/scopr/master/inst/extdata/ethoscope_results/index.txt
  Backtrace:
      ▆
   1. └─scopr:::link_ethoscope_metadata_remote(...) at test-link_ethoscope_metadata_remote.R:51:3
   2.   └─scopr:::build_query(result_dir = remote_dir, query = query, index_file = index_file)
   3.     └─scopr::list_result_files(result_dir, index_file)
   4.       └─base::tryCatch(...)
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test-list_result_files.R:31:3'): list_result_files fails works with remote index? ──
  Error in `value[[3L]](cond)`: Could not find index file: https://raw.githubusercontent.com/rethomics/scopr/master/inst/extdata/ethoscope_results/index.txt
  Backtrace:
      ▆
   1. └─scopr:::list_result_files(dir, index_file = "index.txt") at test-list_result_files.R:31:3
   2.   └─base::tryCatch(...)
   3.     └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   4.       └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   5.         └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 45 ]
  Error:
  ! Test failures.
  Execution halted