Skip to content

Commit

Permalink
merge pr #1099: v0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Apr 13, 2022
2 parents 68bf915 + a85a718 commit 08d7a0c
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
@@ -1,7 +1,7 @@
Type: Package
Package: broom
Title: Convert Statistical Objects into Tidy Tibbles
Version: 0.7.12.9000
Version: 0.8.0
Authors@R:
c(person(given = "David",
family = "Robinson",
Expand Down
12 changes: 6 additions & 6 deletions NEWS.md
@@ -1,15 +1,15 @@
# broom 0.7.12.9000
# broom 0.8.0

To be released as broom 0.8.0.
This update makes significant improvements to documentation, fixes a number of bugs, and brings the development flow of the package up to date with other packages in the tidymodels.

While broom 0.8.0 does not introduce much in terms of new functionality or breaking changes, this update makes significant improvements to documentation and usability of the package and marks a new stage in the package's lifecycle.
In the big picture, this release:

* Many improvements to documentation:
* Makes many improvements to documentation:
- All tidiers now have example code demonstrating usage in their documentation. Tidiers for base packages as well as selected others also include sample code for visualization of results with ggplot2.
- Code examples in the documentation largely now follow consistent style---these changes were made largely to reflect the tidyverse style guide, addressing spacing, object naming, and commenting, among other things.
- Examples previously marked with `\dontrun` or `\donttest` have been workshopped to run reliably.
* Clarify errors and warnings for deprecated and un-maintained tidiers.
* Ensure that tidiers are placed in files named according to the model-supplying package rather than the model object class for easier navigability of the source code.
* Clarifies errors and warnings for deprecated and un-maintained tidiers.
* Ensures that tidiers are placed in files named according to the model-supplying package rather than the model object class for easier navigability of the source code.

### Bug fixes and other improvements

Expand Down
6 changes: 6 additions & 0 deletions R/joinerml-tidiers.R
Expand Up @@ -16,6 +16,10 @@
#'
#' @examples
#'
#' # broom only skips running these examples because the example models take a
#' # while to generate—they should run just fine, though!
#' \dontrun{
#'
#' # feel free to ignore the following line—it allows {broom} to supply
#' # examples without requiring the model-supplying package to be installed.
#' if (requireNamespace("joineRML", quietly = TRUE)) {
Expand Down Expand Up @@ -66,6 +70,8 @@
#' # extract model statistics
#' glance(fit)
#' }
#'
#' }
#'
#' @export
#' @aliases mjoint_tidiers joinerml_tidiers
Expand Down
4 changes: 2 additions & 2 deletions R/utilities.R
Expand Up @@ -282,7 +282,7 @@ augment_columns <- function(x, data, newdata = NULL, type, type.predict = type,

original <- data

if (class(na_action) == "exclude") {
if (inherits(na_action, "exclude")) {
# check if values are missing
if (length(stats::residuals(x)) > nrow(data)) {
warning(
Expand All @@ -300,7 +300,7 @@ augment_columns <- function(x, data, newdata = NULL, type, type.predict = type,
# no NAs were left out; we can simply recombine
original <- as_augment_tibble(original)
return(as_tibble(cbind(original, ret)))
} else if (class(na_action) == "omit") {
} else if (inherits(na_action, "omit")) {
# if the option is "omit", drop those rows from the data
original <- as_augment_tibble(original)
original <- original[-na_action, ]
Expand Down
8 changes: 5 additions & 3 deletions cran-comments.md
@@ -1,11 +1,13 @@
# broom 0.7.12.9000
# broom 0.8.0

## R CMD check results

0 WARNINGS, 0 ERRORS, 0 NOTES.

# Reverse dependencies

We checked 196 reverse dependencies (179 from CRAN + 17 from BioConductor),
We checked 192 reverse dependencies (191 from CRAN + 1 from Bioconductor),
comparing R CMD check results across CRAN and dev versions of this package.
We saw no new ERRORs, WARNINGs, or NOTEs.

* We saw 0 new problems
* We failed to check 0 packages
6 changes: 6 additions & 0 deletions man/augment.mjoint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/glance.mjoint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions man/tidy.mjoint.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 08d7a0c

Please sign in to comment.