Skip to content

Commit 3bb12c3

Browse files
grammar, use warningf
1 parent 232d4ce commit 3bb12c3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## BREAKING CHANGE
66

7-
1. Rolling functions `frollmean` and `frollsum` used to treat `Inf` and `-Inf` as `NA` when using default `algo="fast"`. It has been changed now and infinity values are not treated as `NA` anymore. If your input into those functions has `Inf` or `-Inf` then you will be affected by this change.
7+
1. Rolling functions `frollmean` and `frollsum` used to treat `Inf` and `-Inf` as `NA` when using default `algo="fast"`. It has been changed now and infinite values are not treated as `NA` anymore. If your input into those functions has `Inf` or `-Inf` then you will be affected by this change.
88

99
## NEW FEATURES
1010

R/froll.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ partial2adaptive = function(x, n, align) {
3737
froll = function(fun, x, n, fill=NA, algo=c("fast","exact"), align=c("right","left","center"), na.rm=FALSE, has.nf=NA, adaptive=FALSE, partial=FALSE, hasNA) {
3838
stopifnot(!missing(fun), is.character(fun), length(fun)==1L, !is.na(fun))
3939
if (!missing(hasNA)) {
40-
warning("hasNA is deprecated, use has.nf instead")
40+
warningf("hasNA is deprecated, use has.nf instead")
4141
if (missing(has.nf)) has.nf = hasNA
4242
} # remove check on next major release
4343
algo = match.arg(algo)

0 commit comments

Comments
 (0)