Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rolog)
  Warning message:
  In fun(libname, pkgname) :
    swipl not found in the PATH. Please set SWI_HOME_DIR accordingly or install R package rswipl.
  > 
  > test_check("rolog")
  [ FAIL 13 | WARN 104 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-rolog.R:25:3'): queries can be formed ────────────────────────
  `q` is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error ('test-rolog.R:34:3'): atoms are properly translated ──────────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_equal(q$X, quote(a)) at test-rolog.R:34:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:44:3'): strings are properly translated ────────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_equal(q$X, "b") at test-rolog.R:44:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:55:3'): integers are properly translated ───────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_equal(q$X, 3L) at test-rolog.R:55:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:67:3'): floating point numbers are properly translated ──
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_equal(q$X, 4) at test-rolog.R:67:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:80:3'): booleans are properly translated ───────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_true(q$X) at test-rolog.R:80:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:94:3'): variables are properly translated ──────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  ── Error ('test-rolog.R:114:3'): missing values are properly translated ────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_true(is.na(q$X)) at test-rolog.R:114:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:130:3'): nans are properly translated ──────────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_true(is.nan(q$X)) at test-rolog.R:130:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:147:3'): Inf is properly translated ────────────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_equal(q$X, Inf) at test-rolog.R:147:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:165:3'): NULL is properly translated ───────────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─testthat::expect_null(q$X) at test-rolog.R:165:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error ('test-rolog.R:186:3'): formals are properly translated ───────────────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. ├─testthat::expect_identical(formals(q$X), formals(f)) at test-rolog.R:186:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─base::formals(q$X)
  ── Error ('test-rolog.R:208:3'): function bodies are properly translated ───────
  Error in `q$X`: $ operator is invalid for atomic vectors
  Backtrace:
      ▆
   1. └─base::body(q$X) at test-rolog.R:208:2
  
  [ FAIL 13 | WARN 104 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted