Skip to content

Commit

Permalink
examples make sure required package versions are installed
Browse files Browse the repository at this point in the history
  • Loading branch information
gisler committed Jul 5, 2020
1 parent 955ca3b commit 046accb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## DTSg v0.5.0.9000

* Added `subset` method: allows for filtering rows and/or selecting columns of a `DTSg` object
* Added `setCols` method: allows for setting the values of columns, adding columns to and/or removing columns from a `DTSg` object
* Added `setCols` method: allows for setting the values of columns of, adding columns to and/or removing columns from a `DTSg` object
* Added `[` extract operator: acts as a shortcut for the `getCol` method
* Added examples to the documentation of the `colapply` method showing how to calculate moving averages with the help of the `runner` package instead of the `rollapply` method
* `aggregate` method can benefit from `data.table`'s *GForce* optimisation now if its `fun` argument is provided with a character vector specifying summary functions
Expand Down
3 changes: 2 additions & 1 deletion R/Swrappers.R
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ colapply <- function(x, ...) {
#'
#' # calculate moving averages with the help of 'runner' (all four given
#' # approaches provide the same result with explicitly missing timestamps)
#' if (requireNamespace("runner", quietly = TRUE)) {
#' if (requireNamespace("runner", quietly = TRUE) &&
#' packageVersion("runner") >= numeric_version("0.3.5")) {
#' wrapper <- function(..., .helpers) {
#' runner::runner(..., idx = .helpers[[".dateTime"]])
#' }
Expand Down
3 changes: 2 additions & 1 deletion man/colapply.DTSg.Rd

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

0 comments on commit 046accb

Please sign in to comment.