Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jun 26, 2024
1 parent 2d73c7d commit f4ba5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/find_terms.R
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ find_terms.mipo <- function(x, flatten = FALSE, ...) {

# exceptions where we want to preserve the response value come here
# - lm(1 / Sepal.Length ~ Species, data = iris)
if (startsWith(original_response, "1/")) {
if (!is.null(original_response) && startsWith(original_response, "1/")) {
f$response <- original_response
}

Expand Down

0 comments on commit f4ba5e0

Please sign in to comment.