Skip to content

Commit

Permalink
Fix the NA runCommand that doesn't work as advertised
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Aug 4, 2024
1 parent ee03d62 commit 733ad09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/monolixNlmixr2est.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
cmd <- rxode2::rxGetControl(ui, "runCommand", "")
if (is.character(cmd)) {
cmd <- .monolixRunCommand
} else if (is.na(cmd)) {
.minfo("run Monolix manually and rerun nlmixr()")
return(NULL)
} else if (!is.function(cmd)) {
stop("invalid value for monolixControl(runCommand=)",
call.=FALSE)
Expand Down Expand Up @@ -261,6 +264,9 @@
.cmd <- rxode2::rxGetControl(.ui, "runCommand", "")
if (!identical(.cmd, "")) {
.monolixRunner(ui=.ui)
if (is.na(.cmd)) {
return(invisible())
}
} else {
if (.hasLixoftConnectors()) {
.x <- try(lixoftConnectors::loadProject(.mlxtran), silent=TRUE)
Expand Down

0 comments on commit 733ad09

Please sign in to comment.