Running ‘testthat.R’ [18s/109s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cwbtools)
  > 
  > test_check("cwbtools")
  === Makeall: processing corpus AUSTEN ===
  Registry directory: /tmp/RtmpVBuEs7/working_dir/RtmpdWqrfa/registry
  ATTRIBUTE word
   + creating LEXSRT ... Creating LEXSRT
  OK
   - lexicon      OK
   + creating FREQS ... Creating FREQS
  OK
   - frequencies  OK
   - token stream OK
   + creating REVCIDX ... Creating REVCIDX
  OK
   + creating REVCORP ... Creating REVCORP
  
  Creating REVCORP component as '/tmp/RtmpVBuEs7/working_dir/RtmpdWqrfa/indexed_corpora/austen/word.corpus.rev' ... 
  Size = 725055 INTs,  Buffer Size = 725055 INTs
  CL makecomps: Pass #1   ( 99.99% complete)
  OK
   ? validating REVCORP ... OK
   - index        OK
  ========================================
  === Makeall: processing corpus AUSTEN ===
  Registry directory: /tmp/RtmpVBuEs7/working_dir/RtmpdWqrfa/registry
  ATTRIBUTE stem
   + creating LEXSRT ... Creating LEXSRT
  OK
   - lexicon      OK
   + creating FREQS ... Creating FREQS
  OK
   - frequencies  OK
   - token stream OK
   + creating REVCIDX ... Creating REVCIDX
  OK
   + creating REVCORP ... Creating REVCORP
  
  Creating REVCORP component as '/tmp/RtmpVBuEs7/working_dir/RtmpdWqrfa/indexed_corpora/austen/stem.corpus.rev' ... 
  Size = 725055 INTs,  Buffer Size = 725055 INTs
  CL makecomps: Pass #1   ( 99.99% complete)
  OK
   ? validating REVCORP ... OK
   - index        OK
  ========================================
  trying URL 'https://sourceforge.net/projects/cwb/files/cwb/cwb-3.0.0/cwb-3.0.0-linux-x86_64.tar.gz'
  Content type 'application/x-gzip' length 8856066 bytes (8.4 MB)
  ==
  downloaded 383 KB
  
  sh: -d: invalid option
  Usage:	sh [GNU long option] [option] ...
  	sh [GNU long option] [option] script-file ...
  GNU long options:
  	--debug
  	--debugger
  	--dump-po-strings
  	--dump-strings
  	--help
  	--init-file
  	--login
  	--noediting
  	--noprofile
  	--norc
  	--posix
  	--pretty-print
  	--rcfile
  	--rpm-requires
  	--restricted
  	--verbose
  	--version
  Shell options:
  	-ilrsD or -c command or -O shopt_option		(invocation only)
  	-abefhkmnptuvxBCEHPT or -o option
  sh: - : invalid option
  Usage:	sh [GNU long option] [option] ...
  	sh [GNU long option] [option] script-file ...
  GNU long options:
  	--debug
  	--debugger
  	--dump-po-strings
  	--dump-strings
  	--help
  	--init-file
  	--login
  	--noediting
  	--noprofile
  	--norc
  	--posix
  	--pretty-print
  	--rcfile
  	--rpm-requires
  	--restricted
  	--verbose
  	--version
  Shell options:
  	-ilrsD or -c command or -O shopt_option		(invocation only)
  	-abefhkmnptuvxBCEHPT or -o option
  
  
  ── Install corpus ──────────────────────────────────────────────────────────────
  
  .
  ── Download resource from Zenodo ───────────────────────────────────────────────
  
   [0%] Downloaded 7932 bytes...
   [0%] Downloaded 10728 bytes...
   [1%] Downloaded 20220 bytes...
   [2%] Downloaded 32802 bytes...
   [2%] Downloaded 35598 bytes...
   [3%] Downloaded 42588 bytes...
   [3%] Downloaded 47592 bytes...
   [3%] Downloaded 50388 bytes...
   [4%] Downloaded 55980 bytes...
   [4%] Downloaded 57084 bytes...
   [4%] Downloaded 64074 bytes...
   [6%] Downloaded 80458 bytes...
   [6%] Downloaded 83646 bytes...
   [6%] Downloaded 89238 bytes...
   [6%] Downloaded 89852 bytes...
   [7%] Downloaded 95444 bytes...
   [7%] Downloaded 96842 bytes...
   [8%] Downloaded 106628 bytes...
   [8%] Downloaded 108026 bytes...
   [8%] Downloaded 112220 bytes...
   [8%] Downloaded 117812 bytes...
   [9%] Downloaded 118524 bytes...
   [9%] Downloaded 125514 bytes...
   [9%] Downloaded 128310 bytes...
   [10%] Downloaded 132504 bytes...
   [10%] Downloaded 133902 bytes...
   [11%] Downloaded 150286 bytes...
   [11%] Downloaded 150678 bytes...
   [11%] Downloaded 151292 bytes...
   [11%] Downloaded 154088 bytes...
   [12%] Downloaded 161078 bytes...
   [13%] Downloaded 177462 bytes...
   [14%] Downloaded 184060 bytes...
   [14%] Downloaded 189652 bytes...
   [14%] Downloaded 192252 bytes...
   [15%] Downloaded 197844 bytes...
   [15%] Downloaded 207630 bytes...
   [16%] Downloaded 213222 bytes...
   [17%] Downloaded 229606 bytes...
   [17%] Downloaded 232794 bytes...
   [18%] Downloaded 236988 bytes...
   [19%] Downloaded 252588 bytes...
   [19%] Downloaded 259578 bytes...
   [19%] Downloaded 260976 bytes...
   [20%] Downloaded 266568 bytes...
   [20%] Downloaded 270076 bytes...
   [21%] Downloaded 285454 bytes...
   [21%] Downloaded 288250 bytes...
   [22%] Downloaded 295240 bytes...
   [22%] Downloaded 302230 bytes...
   [23%] Downloaded 302844 bytes...
   [23%] Downloaded 309834 bytes...
   [23%] Downloaded 312630 bytes...
   [23%] Downloaded 314028 bytes...
   [24%] Downloaded 325212 bytes...
   [24%] Downloaded 326610 bytes...
   [26%] Downloaded 342994 bytes...
   [27%] Downloaded 357932 bytes...
   [27%] Downloaded 357980 bytes...
   [28%] Downloaded 374364 bytes...
   [29%] Downloaded 383800 bytes...
   [30%] Downloaded 396438 bytes...
   [31%] Downloaded 412822 bytes...
   [32%] Downloaded 429142 bytes...
   [33%] Downloaded 445526 bytes...
   [35%] Downloaded 461846 bytes...
   [36%] Downloaded 478230 bytes...
   [37%] Downloaded 494550 bytes...
   [38%] Downloaded 510934 bytes...
   [40%] Downloaded 527254 bytes...
   [41%] Downloaded 543638 bytes...
   [42%] Downloaded 559958 bytes...
   [43%] Downloaded 576342 bytes...
   [45%] Downloaded 592662 bytes...
   [46%] Downloaded 609046 bytes...
   [47%] Downloaded 625366 bytes...
   [48%] Downloaded 641750 bytes...
   [50%] Downloaded 658070 bytes...
   [51%] Downloaded 674454 bytes...
   [52%] Downloaded 690774 bytes...
   [53%] Downloaded 707158 bytes...
   [55%] Downloaded 723478 bytes...
   [56%] Downloaded 739862 bytes...
   [57%] Downloaded 756182 bytes...
   [58%] Downloaded 772566 bytes...
   [60%] Downloaded 788886 bytes...
   [61%] Downloaded 805270 bytes...
   [62%] Downloaded 821590 bytes...
   [63%] Downloaded 837974 bytes...
   [65%] Downloaded 854294 bytes...
   [66%] Downloaded 870678 bytes...
   [67%] Downloaded 886998 bytes...
   [68%] Downloaded 903382 bytes...
   [69%] Downloaded 919702 bytes...
   [71%] Downloaded 936086 bytes...
   [72%] Downloaded 952406 bytes...
   [72%] Downloaded 952422 bytes...
   [73%] Downloaded 968806 bytes...
   [73%] Downloaded 968854 bytes...
   [74%] Downloaded 985118 bytes...
   [76%] Downloaded 1001502 bytes...
   [77%] Downloaded 1017822 bytes...
   [78%] Downloaded 1034206 bytes...
   [79%] Downloaded 1050526 bytes...
   [81%] Downloaded 1066910 bytes...
   [82%] Downloaded 1083230 bytes...
   [83%] Downloaded 1099614 bytes...
   [84%] Downloaded 1115934 bytes...
   [86%] Downloaded 1132318 bytes...
   [87%] Downloaded 1148638 bytes...
   [88%] Downloaded 1165022 bytes...
   [89%] Downloaded 1181342 bytes...
   [91%] Downloaded 1197726 bytes...
   [92%] Downloaded 1214046 bytes...
   [93%] Downloaded 1230430 bytes...
   [94%] Downloaded 1246750 bytes...
   [96%] Downloaded 1263134 bytes...
   [97%] Downloaded 1279454 bytes...
   [98%] Downloaded 1295838 bytes...
   [99%] Downloaded 1312158 bytes...
   [100%] Downloaded 1314165 bytes...
  ── Install corpus ──────────────────────────────────────────────────────────────
  
  .
  ── Download restricted resource from Zenodo ────────────────────────────────────
  librdf error - HTML parser error: Tag header invalid
  librdf error - HTML parser error: Tag nav invalid
  librdf error - HTML parser error: Tag nav invalid
  librdf error - HTML parser error: Opening and ending tag mismatch: header and div
  librdf error - HTML parser error: Tag main invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag article invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Unexpected end tag : p
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag aside invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag section invalid
  librdf error - HTML parser error: Tag footer invalid
  librdf error - HTML parser error: htmlParseEntityRef: no name
  librdf error - HTML parser error: Element script embeds close tag
  librdf error - HTML parser error: Element script embeds close tag
  
   [0%] Downloaded 5845 bytes...
   [0%] Downloaded 10728 bytes...
   [0%] Downloaded 12126 bytes...
   [1%] Downloaded 17718 bytes...
   [1%] Downloaded 21912 bytes...
   [2%] Downloaded 27504 bytes...
   [2%] Downloaded 31698 bytes...
   [2%] Downloaded 37290 bytes...
   [3%] Downloaded 41484 bytes...
   [3%] Downloaded 45678 bytes...
   [3%] Downloaded 51270 bytes...
   [4%] Downloaded 52668 bytes...
   [4%] Downloaded 59658 bytes...
   [4%] Downloaded 62454 bytes...
   [5%] Downloaded 69372 bytes...
   [5%] Downloaded 72168 bytes...
   [5%] Downloaded 76362 bytes...
   [6%] Downloaded 88944 bytes...
   [7%] Downloaded 97332 bytes...
   [7%] Downloaded 100840 bytes...
   [8%] Downloaded 105034 bytes...
   [8%] Downloaded 109228 bytes...
   [9%] Downloaded 121810 bytes...
   [9%] Downloaded 126004 bytes...
   [10%] Downloaded 142388 bytes...
   [12%] Downloaded 158708 bytes...
   [13%] Downloaded 175092 bytes...
   [13%] Downloaded 181238 bytes...
   [13%] Downloaded 182636 bytes...
   [15%] Downloaded 199020 bytes...
   [15%] Downloaded 206402 bytes...
   [17%] Downloaded 222786 bytes...
   [18%] Downloaded 238556 bytes...
   [19%] Downloaded 254940 bytes...
   [20%] Downloaded 271260 bytes...
   [21%] Downloaded 277700 bytes...
   [22%] Downloaded 294084 bytes...
   [22%] Downloaded 294476 bytes...
   [23%] Downloaded 310860 bytes...
   [24%] Downloaded 321038 bytes...
   [25%] Downloaded 337422 bytes...
   [27%] Downloaded 353742 bytes...
   [28%] Downloaded 370126 bytes...
   [28%] Downloaded 376958 bytes...
   [30%] Downloaded 393342 bytes...
   [31%] Downloaded 409662 bytes...
   [32%] Downloaded 426046 bytes...
   [33%] Downloaded 442366 bytes...
   [34%] Downloaded 456644 bytes...
   [36%] Downloaded 473028 bytes...
   [37%] Downloaded 489348 bytes...
   [37%] Downloaded 495788 bytes...
   [39%] Downloaded 512172 bytes...
   [40%] Downloaded 528492 bytes...
   [41%] Downloaded 540524 bytes...
   [42%] Downloaded 551708 bytes...
   [43%] Downloaded 568092 bytes...
   [44%] Downloaded 584412 bytes...
   [45%] Downloaded 596444 bytes...
   [46%] Downloaded 612828 bytes...
   [48%] Downloaded 629148 bytes...
   [48%] Downloaded 631394 bytes...
   [49%] Downloaded 647778 bytes...
   [49%] Downloaded 652364 bytes...
   [51%] Downloaded 668748 bytes...
   [52%] Downloaded 683120 bytes...
   [52%] Downloaded 687314 bytes...
   [53%] Downloaded 695702 bytes...
   [53%] Downloaded 701294 bytes...
   [54%] Downloaded 717678 bytes...
   [56%] Downloaded 733998 bytes...
   [56%] Downloaded 739040 bytes...
   [57%] Downloaded 744632 bytes...
   [57%] Downloaded 751622 bytes...
   [58%] Downloaded 760010 bytes...
   [59%] Downloaded 773990 bytes...
   [60%] Downloaded 790374 bytes...
   [60%] Downloaded 794960 bytes...
   [61%] Downloaded 808940 bytes...
   [63%] Downloaded 825324 bytes...
   [64%] Downloaded 841644 bytes...
   [65%] Downloaded 850880 bytes...
   [66%] Downloaded 864860 bytes...
   [67%] Downloaded 881244 bytes...
   [68%] Downloaded 897564 bytes...
   [68%] Downloaded 898412 bytes...
   [70%] Downloaded 914796 bytes...
   [70%] Downloaded 920780 bytes...
   [71%] Downloaded 934760 bytes...
   [72%] Downloaded 951144 bytes...
   [72%] Downloaded 952934 bytes...
   [74%] Downloaded 969318 bytes...
   [74%] Downloaded 976700 bytes...
   [76%] Downloaded 993084 bytes...
   [77%] Downloaded 1008854 bytes...
   [78%] Downloaded 1025238 bytes...
   [79%] Downloaded 1032620 bytes...
   [80%] Downloaded 1049004 bytes...
   [81%] Downloaded 1064774 bytes...
   [82%] Downloaded 1081158 bytes...
   [83%] Downloaded 1088540 bytes...
   [84%] Downloaded 1104924 bytes...
   [85%] Downloaded 1116500 bytes...
   [85%] Downloaded 1120694 bytes...
   [87%] Downloaded 1137078 bytes...
   [87%] Downloaded 1145858 bytes...
   [89%] Downloaded 1162242 bytes...
   [89%] Downloaded 1172420 bytes...
   [90%] Downloaded 1180808 bytes...
   [91%] Downloaded 1197192 bytes...
   [91%] Downloaded 1200380 bytes...
   [93%] Downloaded 1216764 bytes...
   [94%] Downloaded 1228340 bytes...
   [94%] Downloaded 1236728 bytes...
   [95%] Downloaded 1253112 bytes...
   [96%] Downloaded 1256300 bytes...
   [97%] Downloaded 1272684 bytes...
   [98%] Downloaded 1284260 bytes...
   [99%] Downloaded 1300644 bytes...
   [100%] Downloaded 1305613 bytes...
  ── Install corpus ──────────────────────────────────────────────────────────────
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/gtar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  
  .
  
  .
  [ FAIL 1 | WARN 5 | SKIP 4 | PASS 10 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test_install.R:72:5', 'test_install.R:83:5',
    'test_install.R:119:5'
  • empty test (1): 'test_directories.R:25:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_encode.R:73:5'): encode corpus ─────────────────────────────────
  Error in `p_attribute_encode(token_stream = self$tokenstream[[new_attribute]], 
      corpus = corpus, p_attribute = new_attribute, encoding = encoding, 
      registry_dir = registry_dir, data_dir = data_dir, method = method, 
      verbose = FALSE, compress = compress)`: CWB binaries not found using `cwb_get_bindir()`
  Backtrace:
      ▆
   1. └─Austen$encode(...) at test_encode.R:73:5
   2.   └─cwbtools::p_attribute_encode(...)
  
  [ FAIL 1 | WARN 5 | SKIP 4 | PASS 10 ]
  Error: Test failures
  Execution halted