Skip to content

Commit

Permalink
Merge pull request #97 from business-science/rc-0.1.6
Browse files Browse the repository at this point in the history
RC 0.1.6
  • Loading branch information
DavisVaughan committed Jul 23, 2020
2 parents 3b7e779 + a242f1f commit e9a632b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tibbletime
Type: Package
Title: Time Aware Tibbles
Version: 0.1.5.9000
Version: 0.1.6
Authors@R: c(
person("Davis", "Vaughan", email = "[email protected]", role = c("aut", "cre")),
person("Matt", "Dancho", email = "[email protected]", role = c("aut"))
Expand Down Expand Up @@ -39,6 +39,7 @@ Suggests:
covr,
gapminder,
knitr,
rmarkdown,
testthat,
tidyr (>= 1.0.0)
VignetteBuilder: knitr
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tibbletime (development version)
# tibbletime 0.1.6

* Fixed minor tidyr 1.0.0 warnings in tests using `nest()`.

Expand Down
8 changes: 6 additions & 2 deletions R/rollify.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,21 @@
#'
#' data(FB)
#'
#' summary2 <- function(x) {
#' unclass(summary(x))
#' }
#'
#' # If the function returns >1 value, set the `unlist = FALSE` argument
#' # Running 5 number summary
#' summary_roll <- rollify(summary, window = 5, unlist = FALSE)
#' summary_roll <- rollify(summary2, window = 5, unlist = FALSE)
#'
#' FB_summarised <- dplyr::mutate(FB, summary_roll = summary_roll(adjusted))
#' FB_summarised$summary_roll[[5]]
#'
#' # dplyr::bind_rows() is often helpful in these cases to get
#' # meaningful output
#'
#' summary_roll <- rollify(~dplyr::bind_rows(summary(.)), window = 5, unlist = FALSE)
#' summary_roll <- rollify(~dplyr::bind_rows(summary2(.)), window = 5, unlist = FALSE)
#' FB_summarised <- dplyr::mutate(FB, summary_roll = summary_roll(adjusted))
#' FB_summarised %>%
#' dplyr::filter(!is.na(summary_roll)) %>%
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Release Summary

This is a minor release to fix a bug with dplyr 1.0.0 and `ungroup()`.
This is an extremely minor release to fix warnings with tidyr 1.0.0 in tests.

## Test environments
* local Mac install, R 4.0.0
Expand Down
8 changes: 6 additions & 2 deletions man/rollify.Rd

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

0 comments on commit e9a632b

Please sign in to comment.