Running ‘testthat.R’ [11s/83s]
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/RtmpOTXbnk/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/RtmpOTXbnk/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/RtmpOTXbnk/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/RtmpOTXbnk/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 383 KB
  
  sh: 0: Illegal option -d
  sh: 0: Illegal option -r
  
  
  ── Install corpus ──────────────────────────────────────────────────────────────
  
  .
  ── Download resource from Zenodo ───────────────────────────────────────────────
  
   [0%] Downloaded 5849 bytes...
   [0%] Downloaded 12028 bytes...
   [1%] Downloaded 21814 bytes...
   [3%] Downloaded 40798 bytes...
   [7%] Downloaded 98044 bytes...
   [14%] Downloaded 195048 bytes...
   [31%] Downloaded 407976 bytes...
   [37%] Downloaded 498936 bytes...
   [38%] Downloaded 508722 bytes...
   [41%] Downloaded 542274 bytes...
   [42%] Downloaded 564642 bytes...
   [44%] Downloaded 578622 bytes...
   [45%] Downloaded 595006 bytes...
   [48%] Downloaded 641532 bytes...
   [50%] Downloaded 657916 bytes...
   [51%] Downloaded 674236 bytes...
   [52%] Downloaded 690620 bytes...
   [53%] Downloaded 706940 bytes...
   [55%] Downloaded 723324 bytes...
   [56%] Downloaded 739644 bytes...
   [57%] Downloaded 756028 bytes...
   [58%] Downloaded 772348 bytes...
   [60%] Downloaded 788732 bytes...
   [61%] Downloaded 805052 bytes...
   [62%] Downloaded 821436 bytes...
   [64%] Downloaded 854140 bytes...
   [68%] Downloaded 899770 bytes...
   [69%] Downloaded 916090 bytes...
   [70%] Downloaded 932474 bytes...
   [72%] Downloaded 948794 bytes...
   [73%] Downloaded 965178 bytes...
   [74%] Downloaded 981498 bytes...
   [75%] Downloaded 997882 bytes...
   [77%] Downloaded 1014202 bytes...
   [78%] Downloaded 1030586 bytes...
   [79%] Downloaded 1046906 bytes...
   [80%] Downloaded 1063290 bytes...
   [82%] Downloaded 1079610 bytes...
   [83%] Downloaded 1095994 bytes...
   [84%] Downloaded 1112314 bytes...
   [86%] Downloaded 1132230 bytes...
   [87%] Downloaded 1148614 bytes...
   [93%] Downloaded 1225048 bytes...
   [94%] Downloaded 1241432 bytes...
   [95%] Downloaded 1257752 bytes...
   [96%] Downloaded 1274136 bytes...
   [98%] Downloaded 1290456 bytes...
   [99%] Downloaded 1304184 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 89852 bytes...
   [10%] Downloaded 134908 bytes...
   [12%] Downloaded 159484 bytes...
   [13%] Downloaded 175868 bytes...
   [14%] Downloaded 192188 bytes...
   [16%] Downloaded 212732 bytes...
   [16%] Downloaded 216828 bytes...
   [21%] Downloaded 286460 bytes...
   [22%] Downloaded 294652 bytes...
   [23%] Downloaded 302844 bytes...
   [24%] Downloaded 319228 bytes...
   [26%] Downloaded 343804 bytes...
   [31%] Downloaded 405244 bytes...
   [31%] Downloaded 413436 bytes...
   [31%] Downloaded 417532 bytes...
   [32%] Downloaded 429820 bytes...
   [39%] Downloaded 511740 bytes...
   [39%] Downloaded 519932 bytes...
   [41%] Downloaded 536316 bytes...
   [42%] Downloaded 556796 bytes...
   [43%] Downloaded 564988 bytes...
   [44%] Downloaded 577276 bytes...
   [47%] Downloaded 622332 bytes...
   [52%] Downloaded 691964 bytes...
   [55%] Downloaded 724732 bytes...
   [56%] Downloaded 732924 bytes...
   [56%] Downloaded 741116 bytes...
   [58%] Downloaded 757500 bytes...
   [63%] Downloaded 823036 bytes...
   [68%] Downloaded 888572 bytes...
   [77%] Downloaded 1007356 bytes...
   [77%] Downloaded 1015548 bytes...
   [79%] Downloaded 1036028 bytes...
   [79%] Downloaded 1044220 bytes...
   [81%] Downloaded 1068796 bytes...
   [82%] Downloaded 1072892 bytes...
   [82%] Downloaded 1081084 bytes...
   [84%] Downloaded 1105660 bytes...
   [86%] Downloaded 1130236 bytes...
   [87%] Downloaded 1138428 bytes...
   [87%] Downloaded 1146620 bytes...
   [89%] Downloaded 1163004 bytes...
   [89%] Downloaded 1171196 bytes...
   [93%] Downloaded 1220348 bytes...
   [94%] Downloaded 1236732 bytes...
   [96%] Downloaded 1257212 bytes...
   [97%] Downloaded 1277692 bytes...
   [99%] Downloaded 1294076 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