dmenne/breathtestcore

CRAN Check Failure for Upcoming broom Release

simonpcouch opened this issue · 2 comments

Hi there! The broom dev team just ran reverse dependency checks on the upcoming broom 0.7.0 release and found new errors/test failures for the CRAN version of this package. I've pasted the results below.

  • checking examples ... ERROR

    ...
    > fit = nls_fit(data)
    > coef_by_group(fit)
    Error: `by` can't contain join column `lhs` which is missing from LHS
    Backtrace:
    [90m     [39m█
    [90m  1. [39m├─breathtestcore::coef_by_group(fit)
    [90m  2. [39m├─breathtestcore:::coef_by_group.breathtestfit(fit)
    [90m  3. [39m│ └─`%>%`(...)
    [90m  4. [39m│   ├─base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
    [90m  5. [39m│   └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
    [90m  6. [39m│     └─base::eval(quote(`_fseq`(`_lhs`)), env, env)
    [90m  7. [39m│       └─breathtestcore:::`_fseq`(`_lhs`)
    [90m  8. [39m│         └─magrittr::freduce(value, `_function_list`)
    [90m  9. [39m│           └─function_list[[i]](value)
    [90m 10. [39m│             ├─dplyr::do(...)
    [90m 11. [39m│             └─dplyr:::do.grouped_df(...)
    [90m 12. [39m│               └─rlang::eval_tidy(args[[j]], mask)
    [90m 13. [39m└─`%>%`(...)
    [90m 14. [39m  ├─base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
    [
    Execution halted
    
  • checking tests ...

     ERROR
    Running the tests in ‘tests/test-all.R’ failed.
    Last 13 lines of output:
      [90m 24. [39mdplyr:::common_by.list(by, x, y)
      [90m 25. [39mdplyr:::bad_args(...)
      [90m 26. [39mdplyr:::glubort(fmt_args(args), ..., .envir = .envir)
      
      ══ testthat results  ═══════════════════════════════════════════════════════════
      [ OK: 333 | SKIPPED: 4 | WARNINGS: 1 | FAILED: 6 ]
      1. Error: Result with default parameters is tbl_df with required columns (@test_coef_by_group.R#13) 
      2. Error: Options digits is served (@test_coef_by_group.R#33) 
      3. Error: Result with default parameters is tbl_df with required columns (@test_coef_diff_by_group.R#13) 
      4. Error: Result with Dunnett contrast only returns 3 groups (@test_coef_diff_by_group.R#24) 
      5. Error: Correct Dunnett contrast when reference value is given (@test_coef_diff_by_group.R#45) 
      6. Error: Options digits is served (@test_coef_diff_by_group.R#67) 
      
      Error: testthat unit tests failed
      Execution halted
    

I think the issue results from the following lines in R/coef_diff_by_group.R:

broom::tidy(confint(glh))[,-2] %>%
  left_join(broom::tidy(summary(glh)), by = "lhs", copy = TRUE)

We are no longer providing tidy() methods for model summary()s for maintainability purposes. Please use the tidy() method implemented for the model object itself.🙂

We hope to submit this new version of the package to CRAN in the coming weeks. If you encounter any problems fixing these issues, please feel free to reach out!

I corrected this immediately, but now I am desparately waiting for broom release on CRAN, since I made the build dependent on 0.7.

@dmenne Thanks so much for your quick work! We're doing our best to work with CRAN to get the release up at the moment—we'd like it to be accepted as well. :-)