Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(Rparadox)
  > 
  > test_check("Rparadox")
  PXLib: Could not open file of paradox database: Read-only file system
  PXLib: Could not open file of paradox database: Read-only file system
  PXLib: Could not open file of paradox database: Read-only file system
  [ FAIL 5 | WARN 3 | SKIP 0 | PASS 8 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-get-data.R:13:3'): pxlib_get_data reads country.db correctly ───
  Error in `pxlib_get_data(px_doc)`: Argument 'pxdoc' must be an object of class 'pxdoc_t', obtained from pxlib_open_file().
  Backtrace:
      ▆
   1. └─Rparadox::pxlib_get_data(px_doc) at test-get-data.R:13:3
  ── Error ('test-get-data.R:159:3'): pxlib_get_data handles an empty table gracefully ──
  Error in `pxlib_get_data(px_doc)`: Argument 'pxdoc' must be an object of class 'pxdoc_t', obtained from pxlib_open_file().
  Backtrace:
      ▆
   1. └─Rparadox::pxlib_get_data(px_doc) at test-get-data.R:159:3
  ── Failure ('test-interface.R:12:3'): pxlib_open_file and pxlib_close_file work correctly ──
  `px_doc` is not an S3 object
  ── Failure ('test-interface.R:13:3'): pxlib_open_file and pxlib_close_file work correctly ──
  inherits(px_doc, "externalptr") is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-interface.R:22:3'): pxlib_open_file and pxlib_close_file work correctly ──
  Error in `pxlib_close_file(px_doc)`: Invalid argument: 'pxdoc' must be an external pointer of class 'pxdoc_t'.
  Backtrace:
      ▆
   1. ├─testthat::expect_invisible(pxlib_close_file(px_doc)) at test-interface.R:22:3
   2. │ └─base::withVisible(call)
   3. └─Rparadox::pxlib_close_file(px_doc)
  
  [ FAIL 5 | WARN 3 | SKIP 0 | PASS 8 ]
  Error: Test failures
  Execution halted