Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Oct 10, 2024
1 parent 78a6536 commit e226010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/CalculateStateCBE.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ for(y in years) {
modelname <- paste0(state, modelstub, substr(y,3,4))
name_for_list <- paste0(state,"-",toString(y))
file_path <- file.path("..","models",paste0(modelname,".rds"))
if(!exists(file_path)) {
if(!file.exists(file_path)) {
stop("Please first build or download the requested model.")
}
models[[name_for_list]] <- readRDS(file_path)
Expand Down

0 comments on commit e226010

Please sign in to comment.