Running ‘testthat.R’ [8s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(staplr)
  > 
  > test_check("staplr")
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 1. Error: fdf manipulation (@test_fill_pdf_internals.R#15)  ─────────────────
  cannot open the connection
  Backtrace:
   1. staplr:::get_fdf_lines(pdfFileRich, tempFDF)
   4. base::readLines(...)
   5. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 2. Error: fill_pdf (@test_general.R#11)  ────────────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::idenfity_form_fields(pdfFile, tempFile)
   2. staplr::get_fields(...)
   4. base::readLines(fieldsTemp, encoding = "UTF-8")
   5. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 3. Error: remove_pages (@test_general.R#116)  ───────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::remove_pages(rmpages = 1, pdfFile, tempFile)
   6. base::readLines(metadataTemp)
   7. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 4. Error: select_pages (@test_general.R#125)  ───────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::select_pages(selpages = 2, pdfFile, tempFile)
   6. base::readLines(metadataTemp)
   7. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 5. Error: rotate (@test_general.R#133)  ─────────────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::rotate_pages(c(1, 2), 90, pdfFile, tempFile)
   6. base::readLines(metadataTemp)
   7. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 6. Error: split (@test_general.R#158)  ──────────────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::split_pdf(pdfFile, tempDir, prefix = "p")
   6. base::readLines(metadataTemp)
   7. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 7. Error: staple (@test_general.R#197)  ─────────────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::split_pdf(pdfFile, tempDir)
   6. base::readLines(metadataTemp)
   7. base::file(con, "r")
  
  Exception in thread "main" java.lang.UnsupportedClassVersionError: com/gitlab/pdftk_java/pdftk : Unsupported major.minor version 52.0
  	at java.lang.ClassLoader.defineClass1(Native Method)
  	at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
  	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  	at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
  	at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
  	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  	at java.security.AccessController.doPrivileged(Native Method)
  	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
  ── 8. Error: overwrite (@test_general.R#221)  ──────────────────────────────────
  cannot open the connection
  Backtrace:
   1. staplr::get_fields(tempFile, convert_field_names = TRUE)
   3. base::readLines(fieldsTemp, encoding = "UTF-8")
   4. base::file(con, "r")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 0 | SKIPPED: 0 | WARNINGS: 7 | FAILED: 8 ]
  1. Error: fdf manipulation (@test_fill_pdf_internals.R#15) 
  2. Error: fill_pdf (@test_general.R#11) 
  3. Error: remove_pages (@test_general.R#116) 
  4. Error: select_pages (@test_general.R#125) 
  5. Error: rotate (@test_general.R#133) 
  6. Error: split (@test_general.R#158) 
  7. Error: staple (@test_general.R#197) 
  8. Error: overwrite (@test_general.R#221) 
  
  Error: testthat unit tests failed
  Execution halted