Skip to content

Commit 14d183c

Browse files
Fix the use of the all_counts function.
1 parent 0545e16 commit 14d183c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/helpers-ppc.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ adjust_gamma <- function(N,
294294
prob = 0.99,
295295
M = 1000,
296296
interpolate_adj = FALSE) {
297-
if (any(
298-
c(K, N, L) < 1,
299-
all_counts(c(K, N, L))
300-
)) {
297+
if (! all_counts(c(K, N, L))) {
301298
abort("Parameters 'N', 'L' and 'K' must be positive integers.")
302299
}
303300
if (prob >= 1 || prob <= 0) {

0 commit comments

Comments
 (0)