Running ‘testthat.R’ [68s/184s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(bidser)
  
  Attaching package: 'bidser'
  
  The following object is masked from 'package:base':
  
      parse
  
  > 
  > test_check("bidser")
  BIDS Project Summary 
  Project Name:  bidser_core_38858b81db7da 
  Participants (n):  2 
  Participants Source:  file 
  Tasks:  rest 
  Index:  disabled 
  Image Types:  func, anat 
  Modalities:  (none) 
  Keys:  folder, kind, relative_path, run, subid, suffix, task, type 
    adding: bidser_pk_38858b/dataset_description.json (stored 0%)
    adding: bidser_pk_38858b/participants.tsv (stored 0%)
    adding: bidser_pk_38858b/sub-01/anat/sub-01_T1w.nii.gz (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_bold.json (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_bold.nii.gz (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_events.tsv (stored 0%)
    adding: bidser_pk_38858b/dataset_description.json (stored 0%)
    adding: bidser_pk_38858b/participants.tsv (stored 0%)
    adding: bidser_pk_38858b/sub-01/anat/sub-01_T1w.nii.gz (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_bold.json (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_bold.nii.gz (stored 0%)
    adding: bidser_pk_38858b/sub-01/func/sub-01_task-rest_run-01_events.tsv (stored 0%)
  Saving _problems/test_events-8.R
  Saving _problems/test_events-19.R
  Saving _problems/test_events-29.R
  Saving _problems/test_events-38.R
  Saving _problems/test_events-54.R
  Saving _problems/test_events-76.R
  Saving _problems/test_func_scans-9.R
  Saving _problems/test_func_scans-46.R
  Saving _problems/test_func_scans-91.R
  Mock BIDS Project Summary 
  Project Name:  MethodTest 
  Participants (n):  2 
  Tasks:  taskA 
  Sessions:  pre 
  Derivatives:  derivatives/mockprep 
  Datatypes:  anat, func 
  Suffixes:  nii.gz, tsv 
  BIDS Keys:  (none) 
  Path:  mock://MethodTest 
    levelName
  1 test_proj
  2  °--raw  
  Saving _problems/test_preproc_scans-169.R
  BIDS Report
  Project: bidser_report_38858b1aec575f 
  Participants source: file 
  Subjects: 1 
  Sessions: 0 
  Tasks: rest 
  Total runs: 1 
  Compliance: passed 
  Index: available 
  Indexed runs: 1 
  [ FAIL 10 | WARN 23 | SKIP 22 | PASS 1668 ]
  
  ══ Skipped tests (22) ══════════════════════════════════════════════════════════
  • Could not test bids_check_compliance with ds001: Failed to download BIDS
    examples: Too Many Requests (RFC 6585) (HTTP 429). (1):
    'test_summary_compliance.R:58:5'
  • Could not test bids_summary with ds001: Failed to download BIDS examples: Too
    Many Requests (RFC 6585) (HTTP 429). (1): 'test_summary_compliance.R:31:5'
  • Could not test sessions with ds007: Failed to download BIDS examples: Too
    Many Requests (RFC 6585) (HTTP 429). (1): 'test_sessions.R:25:5'
  • Mock derivatives dataset not available (7): 'test_preproc_scans.R:20:3',
    'test_preproc_scans.R:35:3', 'test_preproc_scans.R:56:3',
    'test_preproc_scans.R:84:3', 'test_preproc_scans.R:101:3',
    'test_preproc_scans.R:129:3', 'test_preproc_scans.R:157:3'
  • On CRAN (6): 'test_mock_bids.R:407:3', 'test_mock_bids.R:465:3',
    'test_mock_bids.R:588:3', 'test_pack_bids.R:2:3', 'test_pack_bids.R:43:3',
    'test_pack_bids.R:216:3'
  • Phoneme dataset with fmriprep derivatives not available (2):
    'test_preproc_mask.R:14:3', 'test_preproc_mask.R:22:3'
  • Test requires internet connection or derivatives dataset: Failed to download
    BIDS examples: Too Many Requests (RFC 6585) (HTTP 429). (2):
    'test_bids_subject.R:71:5', 'test_bids_subject.R:101:5'
  • Test requires internet connection or valid dataset: Failed to download BIDS
    examples: Too Many Requests (RFC 6585) (HTTP 429). (1):
    'test_bids_subject.R:37:5'
  • phoneme_stripped dataset not found - tests will be skipped (1):
    'test_search_files.R:9:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_events.R:8:3'): can extract event files from bids project ──────
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_events.R:8:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_events.R:19:3'): can search for event files from bids project ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_events.R:19:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_events.R:29:3'): can read in event files from bids project ─────
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_events.R:29:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_events.R:38:3'): can read in event files from a single subject ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_events.R:38:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_events.R:54:3'): run filtering works ───────────────────────────
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_events.R:54:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_events.R:76:3'): session filtering works ───────────────────────
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds114") at test_events.R:76:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_func_scans.R:9:3'): can extract functional files from bids project ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_func_scans.R:9:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_func_scans.R:46:3'): can extract functional files for one subject from bids project ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_func_scans.R:46:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_func_scans.R:91:3'): attempt to find func_scan with non-existent id should return NULL ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_func_scans.R:91:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  ── Error ('test_preproc_scans.R:169:3'): returns NULL when project lacks fmriprep data ──
  Error in `value[[3L]](cond)`: Failed to download BIDS examples: Too Many Requests (RFC 6585) (HTTP 429).
  Backtrace:
      ▆
   1. └─bidser:::setup_test_dataset("ds001") at test_preproc_scans.R:169:3
   2.   └─bidser:::download_bids_example(dataset_name) at ./helper-bids-examples.R:338:3
   3.     └─bidser:::download_bids_repo(cache_dir, force_refresh) at ./helper-bids-examples.R:307:3
   4.       └─base::tryCatch(...) at ./helper-bids-examples.R:75:3
   5.         └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   6.           └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7.             └─value[[3L]](cond)
  
  [ FAIL 10 | WARN 23 | SKIP 22 | PASS 1668 ]
  Error:
  ! Test failures.
  Execution halted