Running ‘testthat.R’ [222s/529s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(brms)
  Loading required package: Rcpp
  Loading 'brms' package (version 2.18.0). Useful instructions
  can be found by typing help('brms'). A more detailed introduction
  to the package is available through vignette('brms_overview').
  
  Attaching package: 'brms'
  
  The following object is masked from 'package:stats':
  
      ar
  
  > 
  > test_check("brms")
  [ FAIL 13 | WARN 0 | SKIP 11 | PASS 2493 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (8)
  • exists("new_stan_functions", asNamespace("brms")) is not TRUE (1)
  • not run by default (1)
  • skip as long as RWiener fails on R-devel for 3.6.0 (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('tests.data-helpers.R:4'): validate_newdata handles factors correctly ──
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms:::rename_pars(brms:::brmsfit_example1) at tests.data-helpers.R:4:2
    2.   ├─brms:::change_effects(bterms, data = data, pars = pars)
    3.   └─brms:::change_effects.brmsterms(bterms, data = data, pars = pars)
    4.     ├─brms:::change_effects(x$dpars[[dp]], data = data, ...)
    5.     └─brms:::change_effects.btl(x$dpars[[dp]], data = data, ...)
    6.       └─brms:::change_sm(x, ...)
    7.         └─brms:::tidy_smef(bterms, data)
    8.           └─brms:::data_sm(x, data)
    9.             └─brms:::smoothCon(...)
   10.               └─mgcv::smoothCon(object, data = data, ...)
   11.                 ├─base::qr(t(sm$C))
   12.                 └─base::qr.default(t(sm$C))
  ── Error ('tests.exclude_pars.R:27'): exclude_pars returns expected parameter names ──
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::brm(y ~ s(x1) + x2, dat, empty = TRUE) at tests.exclude_pars.R:27:2
    2.   └─brms:::.validate_prior(prior, bterms = bterms, data = data, sample_prior = sample_prior)
    3.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    4.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    5.       └─brms:::prior_predictor.brmsterms(bterms, data = data, internal = internal)
    6.         ├─brms:::prior_predictor(...)
    7.         └─brms:::prior_predictor.btl(...)
    8.           └─brms:::prior_sm(x, ...)
    9.             └─brms:::tidy_smef(bterms, data)
   10.               └─brms:::data_sm(x, data)
   11.                 └─brms:::smoothCon(...)
   12.                   └─mgcv::smoothCon(object, data = data, ...)
   13.                     ├─base::qr(t(sm$C))
   14.                     └─base::qr.default(t(sm$C))
  ── Error ('tests.make_stancode.R:313'): link functions appear in the Stan code ──
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. ├─brms:::expect_match2(...) at tests.make_stancode.R:313:2
    2. │ └─testthat::expect_match(object, regexp, fixed = TRUE, ..., all = all)
    3. │   └─testthat::quasi_label(enquo(object), label, arg = "object")
    4. │     └─rlang::eval_bare(expr, quo_get_env(quo))
    5. └─brms::make_stancode(y ~ s(x), dat, family = poisson())
    6.   └─brms:::.validate_prior(prior, bterms = bterms, data = data, sample_prior = sample_prior)
    7.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    8.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    9.       └─brms:::prior_predictor.brmsterms(bterms, data = data, internal = internal)
   10.         ├─brms:::prior_predictor(...)
   11.         └─brms:::prior_predictor.btl(...)
   12.           └─brms:::prior_sm(x, ...)
   13.             └─brms:::tidy_smef(bterms, data)
   14.               └─brms:::data_sm(x, data)
   15.                 └─brms:::smoothCon(...)
   16.                   └─mgcv::smoothCon(object, data = data, ...)
   17.                     ├─base::qr(t(sm$C))
   18.                     └─base::qr.default(t(sm$C))
  ── Error ('tests.make_stancode.R:605'): Stan code for multivariate models is correct ──
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::make_stancode(bform, dat, prior = bprior) at tests.make_stancode.R:605:2
    2.   └─brms:::.validate_prior(prior, bterms = bterms, data = data, sample_prior = sample_prior)
    3.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    4.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    5.       └─brms:::prior_predictor.mvbrmsterms(bterms, data = data, internal = internal)
    6.         ├─brms:::prior_predictor(x$terms[[i]], ...)
    7.         └─brms:::prior_predictor.brmsterms(x$terms[[i]], ...)
    8.           ├─brms:::prior_predictor(...)
    9.           └─brms:::prior_predictor.btl(...)
   10.             └─brms:::prior_sm(x, ...)
   11.               └─brms:::tidy_smef(bterms, data)
   12.                 └─brms:::data_sm(x, data)
   13.                   └─brms:::smoothCon(...)
   14.                     └─mgcv::smoothCon(object, data = data, ...)
   15.                       ├─base::qr(t(sm$C))
   16.                       └─base::qr.default(t(sm$C))
  ── Error ('tests.make_stancode.R:981'): monotonic effects appear in the Stan code ──
  Error in `qr.default(X)`: object '.F_dqrdc2' not found
  Backtrace:
      ▆
   1. └─brms::make_stancode(y ~ y * mo(x1) * mo(x2), dat, prior = prior) at tests.make_stancode.R:981:2
   2.   └─brms:::validate_data(...)
   3.     └─brms:::fix_factor_contrasts(data, ignore = groups)
   4.       └─stats::contrasts(data[[i]])
   5.         └─stats (local) ctrfn(levels(x), contrasts = contrasts)
   6.           └─stats (local) make.poly(n, scores)
   7.             ├─base::qr(X)
   8.             └─base::qr.default(X)
  ── Error ('tests.make_stancode.R:1157'): Stan code for GAMMs is correct ────────
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::make_stancode(...) at tests.make_stancode.R:1157:2
    2.   └─brms:::.validate_prior(prior, bterms = bterms, data = data, sample_prior = sample_prior)
    3.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    4.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    5.       └─brms:::prior_predictor.brmsterms(bterms, data = data, internal = internal)
    6.         ├─brms:::prior_predictor(...)
    7.         └─brms:::prior_predictor.btl(...)
    8.           └─brms:::prior_sm(x, ...)
    9.             └─brms:::tidy_smef(bterms, data)
   10.               └─brms:::data_sm(x, data)
   11.                 └─brms:::smoothCon(...)
   12.                   └─mgcv::smoothCon(object, data = data, ...)
   13.                     ├─base::qr(t(sm$C))
   14.                     └─base::qr.default(t(sm$C))
  ── Error ('tests.make_standata.R:91'): make_standata accepts correct response variables depending on the family ──
  Error in `qr.default(X)`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at tests.make_standata.R:91:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─brms::make_standata(y ~ 1, data = dat, family = "acat")
    5.   └─brms:::validate_data(...)
    6.     └─brms:::fix_factor_contrasts(data, ignore = groups)
    7.       └─stats::contrasts(data[[i]])
    8.         └─stats (local) ctrfn(levels(x), contrasts = contrasts)
    9.           └─stats (local) make.poly(n, scores)
   10.             ├─base::qr(X)
   11.             └─base::qr.default(X)
  ── Error ('tests.make_standata.R:231'): make_standata handles multivariate models ──
  Error in `qr.default(t(sm$C[, indi, drop = FALSE]))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::make_standata(bform, dat, prior = bprior) at tests.make_standata.R:231:2
    2.   └─brms:::.validate_prior(...)
    3.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    4.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    5.       └─brms:::prior_predictor.mvbrmsterms(bterms, data = data, internal = internal)
    6.         ├─brms:::prior_predictor(x$terms[[i]], ...)
    7.         └─brms:::prior_predictor.brmsterms(x$terms[[i]], ...)
    8.           ├─brms:::prior_predictor(...)
    9.           └─brms:::prior_predictor.btl(...)
   10.             └─brms:::prior_sm(x, ...)
   11.               └─brms:::tidy_smef(bterms, data)
   12.                 └─brms:::data_sm(x, data)
   13.                   └─brms:::smoothCon(...)
   14.                     └─mgcv::smoothCon(object, data = data, ...)
   15.                       ├─base::qr(t(sm$C[, indi, drop = FALSE]))
   16.                       └─base::qr.default(t(sm$C[, indi, drop = FALSE]))
  ── Error ('tests.make_standata.R:370'): make_standata correctly prepares data for monotonic effects ──
  Error in `qr.default(X)`: object '.F_dqrdc2' not found
  Backtrace:
      ▆
   1. └─brms::make_standata(y ~ mo(x1) * mo(x2) * y, data = data) at tests.make_standata.R:370:2
   2.   └─brms:::validate_data(...)
   3.     └─brms:::fix_factor_contrasts(data, ignore = groups)
   4.       └─stats::contrasts(data[[i]])
   5.         └─stats (local) ctrfn(levels(x), contrasts = contrasts)
   6.           └─stats (local) make.poly(n, scores)
   7.             ├─base::qr(X)
   8.             └─base::qr.default(X)
  ── Error ('tests.make_standata.R:435'): make_standata returns data for GAMMs ───
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::make_standata(y ~ s(x1) + z + s(x2, by = x3), data = dat) at tests.make_standata.R:435:2
    2.   └─brms:::.validate_prior(...)
    3.     └─brms:::.get_prior(bterms, data, internal = TRUE)
    4.       ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    5.       └─brms:::prior_predictor.brmsterms(bterms, data = data, internal = internal)
    6.         ├─brms:::prior_predictor(...)
    7.         └─brms:::prior_predictor.btl(...)
    8.           └─brms:::prior_sm(x, ...)
    9.             └─brms:::tidy_smef(bterms, data)
   10.               └─brms:::data_sm(x, data)
   11.                 └─brms:::smoothCon(...)
   12.                   └─mgcv::smoothCon(object, data = data, ...)
   13.                     ├─base::qr(t(sm$C))
   14.                     └─base::qr.default(t(sm$C))
  ── Error ('tests.make_standata.R:704'): make_standata handles calls to the 'poly' function ──
  Error in `qr.default(X)`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at tests.make_standata.R:704:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─base::colnames(make_standata(y ~ 1 + poly(x, 3), dat)$X)
    5. │ └─base::is.data.frame(x)
    6. │   └─base::inherits(x, "data.frame")
    7. └─brms::make_standata(y ~ 1 + poly(x, 3), dat)
    8.   └─brms:::validate_data(...)
    9.     ├─stats::model.frame(...)
   10.     └─stats::model.frame.default(...)
   11.       └─base::eval(predvars, data, env)
   12.         └─base::eval(predvars, data, env)
   13.           └─stats::poly(x, 3)
   14.             ├─base::qr(X)
   15.             └─base::qr.default(X)
  ── Error ('tests.priors.R:54'): get_prior returns correct fixed effect names for GAMMs ──
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. └─brms::get_prior(y ~ z + s(x) + (1 | g), data = dat) at tests.priors.R:54:2
    2.   └─brms:::.get_prior(bterms, data, ...)
    3.     ├─brms:::prior_predictor(bterms, data = data, internal = internal)
    4.     └─brms:::prior_predictor.brmsterms(bterms, data = data, internal = internal)
    5.       ├─brms:::prior_predictor(...)
    6.       └─brms:::prior_predictor.btl(...)
    7.         └─brms:::prior_sm(x, ...)
    8.           └─brms:::tidy_smef(bterms, data)
    9.             └─brms:::data_sm(x, data)
   10.               └─brms:::smoothCon(...)
   11.                 └─mgcv::smoothCon(object, data = data, ...)
   12.                   ├─base::qr(t(sm$C))
   13.                   └─base::qr.default(t(sm$C))
  ── Error ('tests.restructure.R:137'): change_old_sm return expected lists ──────
  Error in `qr.default(t(sm$C))`: object '.F_dqrdc2' not found
  Backtrace:
       ▆
    1. ├─testthat::expect_equivalent(...) at tests.restructure.R:137:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─brms:::change_old_sm(bterms, dat, pars, dims)
    5.   └─brms (local) .change_old_sm(bt)
    6.     └─brms:::tidy_smef(bt, data)
    7.       └─brms:::data_sm(x, data)
    8.         └─brms:::smoothCon(...)
    9.           └─mgcv::smoothCon(object, data = data, ...)
   10.             ├─base::qr(t(sm$C))
   11.             └─base::qr.default(t(sm$C))
  
  [ FAIL 13 | WARN 0 | SKIP 11 | PASS 2493 ]
  Error: Test failures
  Execution halted