Skip to content

Commit

Permalink
minor protection
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Sep 17, 2024
1 parent 6abec48 commit 22e4d0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: bayestestR
Title: Understand and Describe Bayesian Models and Posterior Distributions
Version: 0.14.0.10
Version: 0.14.0.11
Authors@R:
c(person(given = "Dominique",
family = "Makowski",
Expand Down
5 changes: 5 additions & 0 deletions R/rope_range.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ rope_range <- function(x, ...) {
#' @rdname rope_range
#' @export
rope_range.default <- function(x, verbose = TRUE, ...) {
# sanity check - if no model found, return default
if (is.null(x)) {
return(c(-0.1, 0.1))
}

response <- insight::get_response(x, source = "mf")
response_transform <- insight::find_transformation(x)
information <- insight::model_info(x, verbose = FALSE)
Expand Down

0 comments on commit 22e4d0d

Please sign in to comment.