Skip to content

Commit

Permalink
Check that nsim_obs is integerish instead of "number"
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Funk <[email protected]>
  • Loading branch information
jamesmbaazam and sbfnk authored May 23, 2024
1 parent be99bb2 commit 7abc10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/likelihood.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ likelihood <- function(chains, statistic = c("size", "length"), offspring_dist,
if (missing(nsim_obs)) {
stop("'nsim_obs' must be specified if 'obs_prob' is < 1")
} else {
checkmate::assert_number(
checkmate::assert_integerish(
nsim_obs, lower = 1, finite = TRUE, na.ok = FALSE
)
}
Expand Down

0 comments on commit 7abc10a

Please sign in to comment.