Skip to content

Commit

Permalink
bug fix in get_linear_predictors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Clark committed Jan 22, 2024
1 parent 54d06dd commit 98a6a7e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/get_linear_predictors.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ obs_Xp_matrix = function(newdata, mgcv_model){
testdat <- data.frame(time = newdata$time)

terms_include <- insight::find_predictors(mgcv_model)$conditional
if(any(terms_include %in% names(trend_test) == FALSE)){
if(any(terms_include %in% names(newdata) == FALSE)){
stop('not all required variables have been supplied in newdata!',
call. = FALSE)
}
Expand Down
Binary file modified src/mvgam.dll
Binary file not shown.
Binary file modified tests/testthat/Rplots.pdf
Binary file not shown.

0 comments on commit 98a6a7e

Please sign in to comment.