dplyr 0.8.1
romainfrancois opened this issue · comments
Romain François commented
As part of doing reverse dependency checks for dplyr 0.8.1 soon to be released, I see this failure:
[master*] 441.7 MiB ❯ revdep_details(revdep = "merTools")
══ Reverse dependency check ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ merTools 0.4.1 ══
Status: BROKEN
── Newly failing
✖ checking examples ... ERROR
✖ checking tests ...
✖ checking re-building of vignette outputs ... WARNING
── Before ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
0 errors ✔ | 0 warnings ✔ | 0 notes ✔
── After ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
❯ checking examples ... ERROR
Running examples in ‘merTools-Ex.R’ failed
The error most likely occurred in:
> ### Name: REsim
> ### Title: Simulate random effects from merMod 'REsim' simulates random
> ### effects from merMod object posterior distributions
> ### Aliases: REsim
>
> ### ** Examples
>
> require(lme4)
> m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
> re2 <- REsim(m2, 25)
Error in `[.data.frame`(dat, , c("groupFctr", "groupID", "term", "mean", :
undefined columns selected
Calls: REsim -> [ -> [.data.frame
Execution halted
❯ checking tests ...
See below...
❯ checking re-building of vignette outputs ... WARNING
Error in re-building vignettes:
...
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Loading required package: Rcpp
rstanarm (Version 2.18.2, packaged: 2018-11-08 22:19:38 UTC)
- Do not expect the default priors to remain the same in future rstanarm versions.
Thus, R scripts should specify priors explicitly, even if they are just the defaults.
- For execution on a local, multicore CPU with excess RAM we recommend calling
options(mc.cores = parallel::detectCores())
- Plotting theme set to bayesplot::theme_default().
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
##
## Amelia II: Multiple Imputation
## (Version 1.7.5, built: 2018-05-07)
## Copyright (C) 2005-2019 James Honaker, Gary King and Matthew Blackwell
## Refer to http://gking.harvard.edu/amelia/ for more information
##
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Quitting from lines 115-117 (merToolsIntro.Rmd)
Erreur : le traitement de la vignette 'merToolsIntro.Rmd' a échoué avec le diagnostic :
undefined columns selected
Exécution arrêtée
── Test failures ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── testthat-a_m ────
> library(testthat)
> library(merTools)
Loading required package: arm
Loading required package: MASS
Loading required package: Matrix
Loading required package: lme4
arm (Version 1.10-1, built: 2018-4-12)
Working directory is /Users/romainfrancois/git/dplyr-revdep/dplyr/revdep/checks.noindex/merTools/new/merTools.Rcheck/tests
Loading required package: dplyr
Attaching package: 'dplyr'
The following object is masked from 'package:MASS':
select
The following object is masked from 'package:testthat':
matches
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
>
> test_check("merTools", filter = "^[a-m]")
── 1. Error: REsim produces data.frames (@test-merExtract.R#90) ───────────────
undefined columns selected
1: expect_is(REsim(lmerSlope1, n.sims = 100), "data.frame") at testthat/test-merExtract.R:90
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: REsim(lmerSlope1, n.sims = 100)
5: dat[, c("groupFctr", "groupID", "term", "mean", "median", "sd")]
6: `[.data.frame`(dat, , c("groupFctr", "groupID", "term", "mean", "median", "sd"))
7: stop("undefined columns selected")
══ testthat results ═══════════════════════════════════════════════════════════
OK: 358 SKIPPED: 20 FAILED: 1
1. Error: REsim produces data.frames (@test-merExtract.R#90)
Error: testthat unit tests failed
Execution halted
2 errors ✖ | 1 warning ✖ | 0 notes ✔
I have not looked at this in details yet.