Running ‘testthat.R’ [11s/85s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cwbtools)
  > 
  > test_check("cwbtools")
  === Makeall: processing corpus AUSTEN ===
  Registry directory: /home/hornik/tmp/scratch/Rtmpfqv3TT/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 '/home/hornik/tmp/scratch/Rtmpfqv3TT/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: /home/hornik/tmp/scratch/Rtmpfqv3TT/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 '/home/hornik/tmp/scratch/Rtmpfqv3TT/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 2.3 MB
  
  sh: 0: Illegal option -d
  sh: 0: Illegal option -r
  
  
  ── Install corpus ──────────────────────────────────────────────────────────────
  
  .
  ── Download resource from Zenodo ───────────────────────────────────────────────
  
   [0%] Downloaded 10728 bytes...
   [2%] Downloaded 39400 bytes...
   [6%] Downloaded 84554 bytes...
   [13%] Downloaded 172752 bytes...
   [25%] Downloaded 331516 bytes...
   [27%] Downloaded 362958 bytes...
   [32%] Downloaded 425856 bytes...
   [33%] Downloaded 442240 bytes...
   [34%] Downloaded 458560 bytes...
   [36%] Downloaded 474944 bytes...
   [37%] Downloaded 491264 bytes...
   [38%] Downloaded 507648 bytes...
   [39%] Downloaded 523968 bytes...
   [41%] Downloaded 540352 bytes...
   [42%] Downloaded 556672 bytes...
   [43%] Downloaded 573056 bytes...
   [44%] Downloaded 589376 bytes...
   [46%] Downloaded 605760 bytes...
   [47%] Downloaded 622096 bytes...
   [52%] Downloaded 687496 bytes...
   [53%] Downloaded 703880 bytes...
   [54%] Downloaded 720200 bytes...
   [56%] Downloaded 736584 bytes...
   [61%] Downloaded 801992 bytes...
   [64%] Downloaded 851024 bytes...
   [66%] Downloaded 867408 bytes...
   [67%] Downloaded 883728 bytes...
   [68%] Downloaded 900112 bytes...
   [69%] Downloaded 916432 bytes...
   [74%] Downloaded 981840 bytes...
   [75%] Downloaded 998224 bytes...
   [77%] Downloaded 1014544 bytes...
   [78%] Downloaded 1030928 bytes...
   [79%] Downloaded 1047248 bytes...
   [80%] Downloaded 1063632 bytes...
   [82%] Downloaded 1079952 bytes...
   [83%] Downloaded 1096336 bytes...
   [84%] Downloaded 1112656 bytes...
   [85%] Downloaded 1129040 bytes...
   [87%] Downloaded 1145360 bytes...
   [88%] Downloaded 1161744 bytes...
   [89%] Downloaded 1178064 bytes...
   [90%] Downloaded 1194448 bytes...
   [93%] Downloaded 1227216 bytes...
   [94%] Downloaded 1243480 bytes...
   [95%] Downloaded 1259864 bytes...
   [97%] Downloaded 1276184 bytes...
   [98%] Downloaded 1292568 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 12028 bytes...
   [2%] Downloaded 36604 bytes...
   [6%] Downloaded 85756 bytes...
   [12%] Downloaded 156786 bytes...
   [13%] Downloaded 173170 bytes...
   [14%] Downloaded 189490 bytes...
   [15%] Downloaded 200124 bytes...
   [20%] Downloaded 272820 bytes...
   [22%] Downloaded 295188 bytes...
   [23%] Downloaded 311572 bytes...
   [29%] Downloaded 386058 bytes...
   [31%] Downloaded 415416 bytes...
   [32%] Downloaded 429396 bytes...
   [39%] Downloaded 513276 bytes...
   [40%] Downloaded 525858 bytes...
   [41%] Downloaded 545430 bytes...
   [42%] Downloaded 556614 bytes...
   [44%] Downloaded 581386 bytes...
   [45%] Downloaded 588768 bytes...
   [50%] Downloaded 664260 bytes...
   [52%] Downloaded 682434 bytes...
   [54%] Downloaded 714588 bytes...
   [55%] Downloaded 724374 bytes...
   [56%] Downloaded 736956 bytes...
   [58%] Downloaded 757926 bytes...
   [59%] Downloaded 773304 bytes...
   [60%] Downloaded 789688 bytes...
   [61%] Downloaded 801264 bytes...
   [62%] Downloaded 816642 bytes...
   [64%] Downloaded 839010 bytes...
   [68%] Downloaded 897726 bytes...
   [72%] Downloaded 947662 bytes...
   [74%] Downloaded 974616 bytes...
   [74%] Downloaded 977412 bytes...
   [75%] Downloaded 985800 bytes...
   [77%] Downloaded 1017954 bytes...
   [78%] Downloaded 1027740 bytes...
   [80%] Downloaded 1047312 bytes...
   [81%] Downloaded 1064088 bytes...
   [82%] Downloaded 1072476 bytes...
   [82%] Downloaded 1079466 bytes...
   [85%] Downloaded 1110222 bytes...
   [87%] Downloaded 1136784 bytes...
   [88%] Downloaded 1150764 bytes...
   [93%] Downloaded 1223460 bytes...
   [94%] Downloaded 1233246 bytes...
   [96%] Downloaded 1262604 bytes...
   [97%] Downloaded 1278988 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