Skip to content

Commit f2f4dbc

Browse files
committed
use correct function name
1 parent 5377849 commit f2f4dbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/froll.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,13 @@ make.roll.names = function(x.len, n.len, n, x.nm, n.nm, fun, adaptive) {
7373
if (is.null(n.nm)) {
7474
if (!adaptive) {
7575
if (!is.numeric(n))
76-
stopf("internal error: misuse of make.names, n must be numeric for !adaptive") ## nocov
76+
stopf("internal error: misuse of make.roll.names, n must be numeric for !adaptive") ## nocov
7777
n.nm = paste0("roll", fun, as.character(as.integer(n)))
7878
} else {
7979
n.nm = paste0("aroll", fun, seq_len(n.len))
8080
}
8181
} else if (!length(n.nm) && !adaptive)
82-
stopf("internal error: misuse of make.names, non-null length 0 n is not possible for !adaptive") ## nocov
82+
stopf("internal error: misuse of make.roll.names, non-null length 0 n is not possible for !adaptive") ## nocov
8383
if (is.null(x.nm)) {
8484
x.nm = paste0("V", seq_len(x.len))
8585
}
@@ -97,7 +97,7 @@ make.roll.names = function(x.len, n.len, n, x.nm, n.nm, fun, adaptive) {
9797
}
9898
}
9999
if (!is.null(ans) && length(ans) != x.len*n.len)
100-
stopf("internal error: make.names generated names of wrong length") ## nocov
100+
stopf("internal error: make.roll.names generated names of wrong length") ## nocov
101101
ans
102102
}
103103

0 commit comments

Comments
 (0)