Skip to content

Commit

Permalink
Change error since you can bind multiple models together
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Dec 2, 2023
1 parent 913a576 commit effd4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ui-bind.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rxAppendModel_ <- function(model1, model2, common=TRUE) {
.ini2 <- model2$iniDf
.bind <- intersect(c(model1$mv0$lhs, model1$mv0$state), model2$allCovs)
if (common && length(.bind) == 0) {
stop("the first model does not have variables that are used by the second model",
stop("not all the models have variables in common (use `common=FALSE` to allow this)",
call.=FALSE)
}
if (is.null(.ini1) && is.null(.ini2)) {
Expand Down

0 comments on commit effd4ba

Please sign in to comment.