Running ‘dotestthat.R’ [6s/7s]
Running the tests in ‘tests/dotestthat.R’ failed.
Complete output:
  > 
  > ## Location of unitTest files
  > runit.dir <- system.file(package="rvgtest", "unittests")
  > 
  > ## Name of R file with test suite
  > testsuite.file <- "runalltests.R"
  > 
  > ## path to R file with test suite
  > testsuite <- file.path(runit.dir, testsuite.file)
  > 
  > ## Indicate that we run 'R CMD check' 
  > .rvgt.RCMDCHECK <- TRUE
  > 
  > ## Load and test suite
  > cat("Running testsuite",testsuite,"\n") 
  Running testsuite /tmp/Rtmp1TvIo8/RLIBS_680a1728da58/rvgtest/unittests/runalltests.R 
  > source(testsuite)
  =============================================
   Run test suite in directory
   /home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/rvgtest/unittests
  =============================================
  Runuran: 
  [Runuran] Runuran API: .....
  [Runuran] Runuran API - Invalid arguments: .12..
  ftable: 
  [ftable] RVG frequency tables - Create: .......3........4
  [ftable] RVG frequency tables - Invalid arguments: .............................
  htest: 
  [htable] RVG frequency tables - GoF tests: ..5
  [htable] RVG frequency tables - Invalid arguments for GoF tests: ............
  ierror: 
  [ierror] Approximation error - uerror: .....6.
  [ierror] Approximation error - xerror: ....789..
  [ierror] Approximation error - plot: abc
  [ierror] Approximation error - Invalid arguments: ..............................d....
  
  ══ Failed ══════════════════════════════════════════════════════════════════════
  ── 1. FAILURE (test_Runuran.R:93:9): [Ru-i12] calling uerror (Runuran) with inva
  `uerror(...)` threw an error with unexpected message.
  Expected match: " Argument 'aqdist' is object of class 'unuran' of invalid distribution type."
  Actual message: "Argument 'aqdist' is object of class 'unuran' of invalid distribution type."
  Backtrace:
   1. testthat::expect_error(...) test_Runuran.R:93:8
   6. rvgtest::uerror(...)
  
  ── 2. FAILURE (test_Runuran.R:100:9): [Ru-i12] calling xerror (Runuran) with inv
  `xerror(...)` threw an error with unexpected message.
  Expected match: " Argument 'aqdist' is object of class 'unuran' of invalid distribution type."
  Actual message: "Argument 'aqdist' is object of class 'unuran' of invalid distribution type."
  Backtrace:
   1. testthat::expect_error(...) test_Runuran.R:100:8
   6. rvgtest::xerror(...)
  
  ── 3. ERROR (test_ftable.R:59:9): [ft-006] calling rvgt.ftable: plot ───────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 4. ERROR (test_ftable.R:139:9): [ft-041] plotting rvgt.ftable ───────────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 5. ERROR (test_htest.R:46:9): [ht-061] plotting rvgt.htest ──────────────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 6. ERROR (test_ierror.R:59:9): [ie-006] calling uerror: dparams, plot ───────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 7. ERROR (test_ierror.R:108:9): [ie-015] calling xerror: plot ───────────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 8. ERROR (test_ierror.R:114:9): [ie-016] calling xerror: abs ────────────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 9. ERROR (test_ierror.R:120:9): [ie-017] calling xerror: rel ────────────────
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
  
  ── 10. ERROR (test_ierror.R:151:9): [ie-021] calling plot.rvgt.ierror: uerror ──
  Error: cannot open file 'Rplots.pdf'
  Backtrace:
    ... and 3 more
  
  
  Maximum number of 10 failures reached, some test results may be missing.
  
  ══ DONE ════════════════════════════════════════════════════════════════════════
  Error: Test failures
  Execution halted