Skip to content

Commit

Permalink
fixing logic preventing NA assignment to dosing when the model has no…
Browse files Browse the repository at this point in the history
… dosing.
  • Loading branch information
john-harrold committed Jun 21, 2024
1 parent 6739d8c commit d325d47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions R/modeldb.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,11 @@ addFileToModelDb <- function(dir, file, modeldb) {
dosing = c(dosing, "depot") }
if("central" %in% mod$params$cmt){
dosing = c(dosing, "central") }
dosing = paste(dosing, collapse=",")
}
if(is.null(dosing)){
dosing = NA_character_
if(!is.null(dosing)){
dosing = paste(dosing, collapse=",")
} else {
dosing = NA_character_
}
}

# Finding depends
Expand Down
Binary file modified data/modeldb.rda
Binary file not shown.

0 comments on commit d325d47

Please sign in to comment.