Skip to content

Commit

Permalink
Add rxUiDeparse method for llpControl
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Sep 17, 2024
1 parent 1b705ca commit 509db7b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ S3method(knit_print,nlmixr2FitCore)
S3method(knit_print,rxUi)
S3method(print,nlmixr2BoostrapSummary)
S3method(profile,nlmixr2FitCore)
S3method(rxUiDeparse,llpControl)
export(adaptivelassoCoefficients)
export(addCatCovariates)
export(addorremoveCovariate)
Expand Down Expand Up @@ -45,6 +46,7 @@ export(profileFixed)
export(profileFixedSingle)
export(profileLlp)
export(regularmodel)
export(rxUiDeparse)
import(lotri)
import(utils)
importFrom(Rcpp,evalCpp)
Expand All @@ -56,6 +58,7 @@ importFrom(nlmixr2est,nlmixrWithTiming)
importFrom(nlmixr2est,setCov)
importFrom(rxode2,ini)
importFrom(rxode2,model)
importFrom(rxode2,rxUiDeparse)
importFrom(stats,AIC)
importFrom(stats,approxfun)
importFrom(stats,cov)
Expand Down
8 changes: 8 additions & 0 deletions R/profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,14 @@ llpControl <- function(ofvIncrease = qchisq(0.95, df = 1),
ret
}

#' @export
rxUiDeparse.llpControl <- function(object, var) {
.default <- llpControl()
.w <- nlmixr2est::.deparseDifferent(.default, object, "genRxControl")
nlmixr2est::.deparseFinal(.default, object, .w, var)
}


# Provide the initial estimates going up and down from the initial value
profileNlmixr2FitDataEstInitial <- function(estimates, which, ofvIncrease, rseTheta, lower, upper) {
checkmate::assert_data_frame(estimates, nrows = 1)
Expand Down
4 changes: 4 additions & 0 deletions R/reexport.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ nlmixr2est::nlmixr2

#' @importFrom nlmixr2est setCov
nlmixr2est::setCov

#' @importFrom rxode2 rxUiDeparse
#' @export
rxode2::rxUiDeparse
3 changes: 2 additions & 1 deletion man/reexports.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 509db7b

Please sign in to comment.