Skip to content

Commit

Permalink
NNull fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jan 11, 2024
1 parent 2e82aa8 commit 646618f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ expose_model_methods <- function(env, force_recompile = FALSE, verbose = FALSE)
file.copy(model_methods_cpp, source_file, overwrite = FALSE)

model_obj_file <- env$obj_file_
if (!file.exists(model_obj_file)) {
if (is.null(model_obj_file) || !file.exists(model_obj_file)) {
if (rlang::is_interactive()) {
message("Model object file not found, recompiling model...")
}
Expand Down

0 comments on commit 646618f

Please sign in to comment.