Skip to content

Commit

Permalink
Handle case where meta doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Nov 30, 2023
1 parent 7dc7244 commit b3d6d74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/rxsolve.R
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,11 @@ rxSolve.function <- function(object, params = NULL, events = NULL, inits = NULL,
.uiRxControl <- function(ui, params = NULL, events = NULL, inits = NULL, ...,
theta = NULL, eta = NULL) {
.ctl <- rxControl()
.meta <- get("meta", ui)
if (exists("meta", envir=ui)) {
.meta <- get("meta", ui)
} else {
.meta <- new.env(parent=emptyenv())
}
.lst <- list(...)
.nlst <- names(.lst)
.w <- which(vapply(names(.ctl), function(x) {
Expand Down

0 comments on commit b3d6d74

Please sign in to comment.