Skip to content

Commit

Permalink
Merge pull request #281 from nlmixr2/270-fuzzy-text-in-print-header-f…
Browse files Browse the repository at this point in the history
…or-focei

Fuzzy bad, silver good
  • Loading branch information
mattfidler committed Oct 29, 2022
2 parents 714118c + 97559c1 commit 2ebc9b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/saem.R
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,13 @@ nmObjGetFoceiControl.saem <- function(x, ...) {
#.txt <- paste0("(", crayon::italic(ifelse(is.null(.uif$nmodel$lin.solved), ifelse(.uif$predSys, "PRED", "ODE"), "Solved")), "); ")
.txt <- ""
if (tolower(type) == "focei") {
.txt <- paste0(.txt, crayon::blurred$italic("OBJF by FOCEi approximation"))
.txt <- paste0(.txt, crayon::silver$italic("OBJF by FOCEi approximation"))
} else if (tolower(type) == "foce") {
.txt <- paste0(.txt, crayon::blurred$italic("OBJF by FOCE approximation"))
.txt <- paste0(.txt, crayon::silver$italic("OBJF by FOCE approximation"))
} else if (tolower(type) == "fo") {
.txt <- paste0(.txt, crayon::blurred$italic("OBJF by FO approximation"))
.txt <- paste0(.txt, crayon::silver$italic("OBJF by FO approximation"))
} else if (type == "") {
.txt <- paste0(.txt, crayon::blurred$italic("OBJF not calculated"))
.txt <- paste0(.txt, crayon::silver$italic("OBJF not calculated"))
} else {
.reg <- rex::rex(start, "laplace", capture(.regNum), end)
.regG <- rex::rex(start, "gauss", capture(.regNum), "_", capture(.regNum), end)
Expand All @@ -689,7 +689,7 @@ nmObjGetFoceiControl.saem <- function(x, ...) {
} else {
stop("unknown error")
}
.txt <- paste0(.txt, crayon::blurred$italic(sprintf("OBJF by %s", paste0(ifelse(.nnode == 1, "Lapalcian (n.sd=", sprintf("Gaussian Quadrature (n.nodes=%s, n.sd=", .nnode)), .nsd, ")"))))
.txt <- paste0(.txt, crayon::silver$italic(sprintf("OBJF by %s", paste0(ifelse(.nnode == 1, "Lapalcian (n.sd=", sprintf("Gaussian Quadrature (n.nodes=%s, n.sd=", .nnode)), .nsd, ")"))))
}
.env$extra <- .txt
invisible()
Expand Down

0 comments on commit 2ebc9b0

Please sign in to comment.