Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("tabulizer")
  > 
  > stop_logging()
  > test_check("tabulizer")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_extract_tables.R:6:5): It basically works ───────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.UnsatisfiedLinkError: C:\Program Files\AdoptOpenJDK\jdk-11.0.11.9-hotspot\bin\awt.dll: Can't find dependent libraries
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(sf) test_extract_tables.R:6:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:12:5): Test 'guess' argument ───────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(sf, pages = 1, guess = TRUE) test_extract_tables.R:12:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:25:5): Import from remote file works ───────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(f2) test_extract_tables.R:25:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:33:5): Import from remote non-Western file ─────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(f3) test_extract_tables.R:33:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:41:5): Test 'area' argument ────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(...) test_extract_tables.R:41:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:55:5): Test 'columns' argument ─────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(...) test_extract_tables.R:55:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:65:5): Extract from encrypted PDF ──────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(f6, password = "userpassword") test_extract_tables.R:65:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_tables.R:73:3): Test 'copy' argument ────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(sf, copy = TRUE) test_extract_tables.R:73:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:6:3): Text can be extracted from the whole document ──
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(sf, encoding = "UTF-8") test_extract_text.R:6:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:14:3): 'page' argument in extract_text works ─────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(sf, pages = 1, encoding = "UTF-8") test_extract_text.R:14:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:22:3): 'area' argument in extract_text works ─────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(...) test_extract_text.R:22:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:31:3): 'area' and 'page' arguments in extract_text work together ──
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(...) test_extract_text.R:31:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:39:3): Multiple pages with different areas can be extracted ──
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(...) test_extract_text.R:39:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_extract_text.R:55:3): Test 'copy' argument ──────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(sf, encoding = "UTF-8", copy = TRUE) test_extract_text.R:55:2
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_non-latin.R:5:5): Read Spanish language PDF ─────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
       █
    1. ├─testthat::expect_true(...) test_non-latin.R:5:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tabulizer::extract_tables(...)
    5. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
    6. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
    7. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
    8. │     └─rJava:::jclassName(class, class.loader = class.loader)
    9. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   10. ├─base::stop(...)
   11. └─(function (cond) ...
  ── Error (test_non-latin.R:15:5): Read French language PDF w/correct encoding ──
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_text(f2, page = 1, encoding = "latin1") test_non-latin.R:15:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_split_merge.R:6:3): Splitting works ─────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::split_pdf(sf) test_split_merge.R:6:2
   2. │ └─tabulizer:::load_doc(file, password = password)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_split_merge.R:21:3): Split files are saved to tempdir() ─────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::split_pdf(sf) test_split_merge.R:21:2
   2. │ └─tabulizer:::load_doc(file, password = password)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_split_merge.R:30:3): Test 'copy' argument for splitting ─────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::split_pdf(sf, copy = TRUE) test_split_merge.R:30:2
   2. │ └─tabulizer:::load_doc(file, password = password)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_split_merge.R:39:3): Merging works ──────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::split_pdf(sf) test_split_merge.R:39:2
   2. │ └─tabulizer:::load_doc(file, password = password)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_split_merge.R:53:3): Test 'copy' argument for merging ───────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::split_pdf(sf, outdir = outdir) test_split_merge.R:53:2
   2. │ └─tabulizer:::load_doc(file, password = password)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_utils.R:14:5): Page length ──────────────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::get_n_pages(file = pdffile) test_utils.R:14:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_utils.R:19:5): Page dimensions ──────────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::get_page_dims(pdffile) test_utils.R:19:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_utils.R:30:5): Make thumbnails ──────────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::make_thumbnails(tmp) test_utils.R:30:4
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  ── Error (test_utils.R:39:5): Extract Metadata ─────────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
       █
    1. ├─testthat::expect_true(is.list(extract_metadata(pdffile))) test_utils.R:39:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tabulizer::extract_metadata(pdffile)
    5. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
    6. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
    7. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
    8. │     └─rJava:::jclassName(class, class.loader = class.loader)
    9. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   10. ├─base::stop(...)
   11. └─(function (cond) ...
  ── Error (test_utils.R:43:5): Extract text ─────────────────────────────────────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
       █
    1. ├─testthat::expect_true(is.character(extract_text(pdffile))) test_utils.R:43:4
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─tabulizer::extract_text(pdffile)
    5. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
    6. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
    7. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
    8. │     └─rJava:::jclassName(class, class.loader = class.loader)
    9. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   10. ├─base::stop(...)
   11. └─(function (cond) ...
  ── Error (test_write_methods.R:4:1): (code run outside of `test_that()`) ───────
  Error: error in evaluating the argument 'Class' in selecting a method for function 'new': java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.PDDocument
  Backtrace:
      █
   1. ├─tabulizer::extract_tables(pdffile, output = "asis") test_write_methods.R:4:0
   2. │ └─tabulizer:::load_doc(file, password = password, copy = copy)
   3. │   ├─methods::new(J("org.apache.pdfbox.pdmodel.PDDocument"))
   4. │   └─rJava::J("org.apache.pdfbox.pdmodel.PDDocument")
   5. │     └─rJava:::jclassName(class, class.loader = class.loader)
   6. │       └─rJava::.jfindClass(as.character(class), class.loader = class.loader)
   7. ├─base::stop(...)
   8. └─(function (cond) ...
  
  [ FAIL 27 | WARN 0 | SKIP 0 | PASS 14 ]
  Error: Test failures
  Execution halted