Skip to contents

Launches a Shiny app for browsing all available pharmacokinetic model templates in the Pmetrics library. Select a model to view its parameters, compartment structure, differential equations, and ready-to-use PM_model$new() code. Use the Copy button to send the code to the clipboard. Individual creator functions such as one_comp_iv() return a compiled PM_model and copy the code automatically.

Usage

model_lib(show = TRUE, launch.browser = TRUE)

Arguments

show

Logical. If TRUE (default), launches the Shiny browser app. If FALSE, returns the model tibble invisibly without launching the app.

launch.browser

Logical. Passed to the standalone app package's run_app() function when show = TRUE.

Value

Invisibly, a tibble of all model templates.