Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
Avraham Adler committed Dec 6, 2024
1 parent 643099a commit dbd6303
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/Delaporte.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ ddelap <- function(x, alpha, beta, lambda, log = FALSE) {
pdelap <- function(q, alpha, beta, lambda, lower.tail = TRUE, log.p = FALSE) {
# These interrupts throw errors even using expect_error. Excluding for now
# nocov start
if (any(q[is.finite(q)] >= 2^63)) {
stop("Function cannot handle values >= 2^63")
if (any(q[is.finite(q)] >= 2 ^ 63)) {
stop("Function cannot handle values >= 2^63.")
}
if (any(q[is.finite(q)] >= 2^15)) {
if (any(q[is.finite(q)] >= 2 ^ 15)) {
cat("There are values >= 32768.",
"This may take minutes if not hours to compute. Are you sure?\n")
resp <- readline("Press 'y' to continue.\n")
Expand Down

0 comments on commit dbd6303

Please sign in to comment.