Running ‘testthat.R’ [15s/107s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cwbtools)
  > 
  > test_check("cwbtools")
  === Makeall: processing corpus AUSTEN ===
  Registry directory: /tmp/RtmpABUVK2/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/RtmpABUVK2/indexed_corpora/austen/word.corpus.rev' ... 
  Size = 725064 INTs,  Buffer Size = 725064 INTs
  CL makecomps: Pass #1   ( 99.99% complete)
  OK
   ? validating REVCORP ... OK
   - index        OK
  ========================================
  === Makeall: processing corpus AUSTEN ===
  Registry directory: /tmp/RtmpABUVK2/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/RtmpABUVK2/indexed_corpora/austen/stem.corpus.rev' ... 
  Size = 725064 INTs,  Buffer Size = 725064 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 1.6 MB
  
  sh: 0: Illegal option -d
  sh: 0: Illegal option -r
  
  
  ── Install corpus ──────────────────────────────────────────────────────────────
  
  .
  ── Download resource from Zenodo ───────────────────────────────────────────────
  
   [0%] Downloaded 12126 bytes...
   [1%] Downloaded 17718 bytes...
   [1%] Downloaded 21912 bytes...
   [2%] Downloaded 33096 bytes...
   [3%] Downloaded 40086 bytes...
   [3%] Downloaded 51270 bytes...
   [4%] Downloaded 56862 bytes...
   [5%] Downloaded 69444 bytes...
   [5%] Downloaded 77564 bytes...
   [6%] Downloaded 83156 bytes...
   [7%] Downloaded 94144 bytes...
   [7%] Downloaded 102140 bytes...
   [8%] Downloaded 114428 bytes...
   [9%] Downloaded 120020 bytes...
   [9%] Downloaded 125612 bytes...
   [10%] Downloaded 134000 bytes...
   [10%] Downloaded 143786 bytes...
   [11%] Downloaded 154970 bytes...
   [12%] Downloaded 167676 bytes...
   [13%] Downloaded 173268 bytes...
   [13%] Downloaded 178664 bytes...
   [14%] Downloaded 192252 bytes...
   [15%] Downloaded 208636 bytes...
   [16%] Downloaded 210426 bytes...
   [16%] Downloaded 213222 bytes...
   [16%] Downloaded 217416 bytes...
   [17%] Downloaded 235590 bytes...
   [18%] Downloaded 241182 bytes...
   [18%] Downloaded 249570 bytes...
   [19%] Downloaded 256560 bytes...
   [19%] Downloaded 260754 bytes...
   [20%] Downloaded 267744 bytes...
   [20%] Downloaded 271938 bytes...
   [20%] Downloaded 274734 bytes...
   [21%] Downloaded 280326 bytes...
   [21%] Downloaded 288714 bytes...
   [23%] Downloaded 304092 bytes...
   [23%] Downloaded 309684 bytes...
   [24%] Downloaded 316674 bytes...
   [26%] Downloaded 342452 bytes...
   [27%] Downloaded 358836 bytes...
   [28%] Downloaded 371754 bytes...
   [29%] Downloaded 387972 bytes...
   [30%] Downloaded 404356 bytes...
   [32%] Downloaded 420676 bytes...
   [33%] Downloaded 437060 bytes...
   [34%] Downloaded 453380 bytes...
   [35%] Downloaded 469764 bytes...
   [36%] Downloaded 486084 bytes...
   [38%] Downloaded 502468 bytes...
   [39%] Downloaded 518804 bytes...
   [40%] Downloaded 535236 bytes...
   [41%] Downloaded 551500 bytes...
   [43%] Downloaded 567884 bytes...
   [44%] Downloaded 584204 bytes...
   [45%] Downloaded 600588 bytes...
   [46%] Downloaded 616908 bytes...
   [48%] Downloaded 633292 bytes...
   [49%] Downloaded 649612 bytes...
   [50%] Downloaded 665996 bytes...
   [51%] Downloaded 682332 bytes...
   [53%] Downloaded 698764 bytes...
   [54%] Downloaded 715028 bytes...
   [55%] Downloaded 731412 bytes...
   [56%] Downloaded 747732 bytes...
   [58%] Downloaded 764116 bytes...
   [59%] Downloaded 780436 bytes...
   [60%] Downloaded 796820 bytes...
   [61%] Downloaded 813140 bytes...
   [63%] Downloaded 829524 bytes...
   [64%] Downloaded 845860 bytes...
   [65%] Downloaded 862292 bytes...
   [66%] Downloaded 878556 bytes...
   [68%] Downloaded 894940 bytes...
   [69%] Downloaded 911260 bytes...
   [70%] Downloaded 927644 bytes...
   [71%] Downloaded 943964 bytes...
   [73%] Downloaded 960348 bytes...
   [74%] Downloaded 976668 bytes...
   [75%] Downloaded 993052 bytes...
   [76%] Downloaded 1009388 bytes...
   [78%] Downloaded 1025820 bytes...
   [79%] Downloaded 1042084 bytes...
   [80%] Downloaded 1058468 bytes...
   [81%] Downloaded 1074788 bytes...
   [83%] Downloaded 1091172 bytes...
   [84%] Downloaded 1107492 bytes...
   [85%] Downloaded 1123876 bytes...
   [86%] Downloaded 1140196 bytes...
   [88%] Downloaded 1156580 bytes...
   [89%] Downloaded 1172900 bytes...
   [90%] Downloaded 1189284 bytes...
   [91%] Downloaded 1205620 bytes...
   [92%] Downloaded 1222052 bytes...
   [94%] Downloaded 1238316 bytes...
   [95%] Downloaded 1254700 bytes...
   [96%] Downloaded 1271020 bytes...
   [97%] Downloaded 1287404 bytes...
   [99%] Downloaded 1303724 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 12028 bytes...
   [1%] Downloaded 20416 bytes...
   [1%] Downloaded 21814 bytes...
   [1%] Downloaded 23212 bytes...
   [3%] Downloaded 39988 bytes...
   [4%] Downloaded 53968 bytes...
   [4%] Downloaded 56764 bytes...
   [4%] Downloaded 59560 bytes...
   [4%] Downloaded 62356 bytes...
   [6%] Downloaded 78740 bytes...
   [6%] Downloaded 80530 bytes...
   [6%] Downloaded 88918 bytes...
   [7%] Downloaded 95908 bytes...
   [8%] Downloaded 105694 bytes...
   [9%] Downloaded 123868 bytes...
   [10%] Downloaded 135052 bytes...
   [10%] Downloaded 140644 bytes...
   [11%] Downloaded 155388 bytes...
   [13%] Downloaded 171772 bytes...
   [13%] Downloaded 176358 bytes...
   [14%] Downloaded 192742 bytes...
   [16%] Downloaded 209062 bytes...
   [16%] Downloaded 212732 bytes...
   [17%] Downloaded 229116 bytes...
   [18%] Downloaded 241830 bytes...
   [19%] Downloaded 258214 bytes...
   [21%] Downloaded 274410 bytes...
   [22%] Downloaded 290508 bytes...
   [23%] Downloaded 306892 bytes...
   [24%] Downloaded 323212 bytes...
   [26%] Downloaded 339596 bytes...
   [27%] Downloaded 355916 bytes...
   [28%] Downloaded 372300 bytes...
   [29%] Downloaded 388620 bytes...
   [31%] Downloaded 405004 bytes...
   [32%] Downloaded 421324 bytes...
   [33%] Downloaded 437708 bytes...
   [34%] Downloaded 454028 bytes...
   [36%] Downloaded 470412 bytes...
   [37%] Downloaded 486732 bytes...
   [38%] Downloaded 503116 bytes...
   [39%] Downloaded 519436 bytes...
   [41%] Downloaded 535820 bytes...
   [42%] Downloaded 552140 bytes...
   [43%] Downloaded 568524 bytes...
   [44%] Downloaded 584844 bytes...
   [46%] Downloaded 601228 bytes...
   [47%] Downloaded 617548 bytes...
   [48%] Downloaded 633932 bytes...
   [49%] Downloaded 650252 bytes...
   [51%] Downloaded 666636 bytes...
   [52%] Downloaded 682956 bytes...
   [53%] Downloaded 699340 bytes...
   [54%] Downloaded 715660 bytes...
   [56%] Downloaded 732044 bytes...
   [57%] Downloaded 748364 bytes...
   [58%] Downloaded 764748 bytes...
   [59%] Downloaded 781084 bytes...
   [61%] Downloaded 797516 bytes...
   [62%] Downloaded 813780 bytes...
   [63%] Downloaded 830164 bytes...
   [64%] Downloaded 846484 bytes...
   [66%] Downloaded 862868 bytes...
   [67%] Downloaded 879188 bytes...
   [68%] Downloaded 895572 bytes...
   [69%] Downloaded 911892 bytes...
   [71%] Downloaded 928276 bytes...
   [72%] Downloaded 944612 bytes...
   [73%] Downloaded 961044 bytes...
   [74%] Downloaded 977308 bytes...
   [76%] Downloaded 993692 bytes...
   [77%] Downloaded 1010012 bytes...
   [78%] Downloaded 1026396 bytes...
   [79%] Downloaded 1042716 bytes...
   [81%] Downloaded 1059100 bytes...
   [82%] Downloaded 1075420 bytes...
   [83%] Downloaded 1091804 bytes...
   [84%] Downloaded 1108140 bytes...
   [86%] Downloaded 1124572 bytes...
   [87%] Downloaded 1140836 bytes...
   [88%] Downloaded 1157220 bytes...
   [89%] Downloaded 1173540 bytes...
   [91%] Downloaded 1189924 bytes...
   [92%] Downloaded 1206244 bytes...
   [93%] Downloaded 1222628 bytes...
   [94%] Downloaded 1238948 bytes...
   [96%] Downloaded 1255332 bytes...
   [97%] Downloaded 1271652 bytes...
   [98%] Downloaded 1288036 bytes...
   [100%] Downloaded 1305613 bytes...
  ── Install corpus ──────────────────────────────────────────────────────────────
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.quarantine'
  /usr/bin/tar: 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