Nothing
#' Retrieve information describing how httk interacts with a model
#'
#' For each model we create a modelinfo_[MODEL].R file (which we refer to as a
#' "modelinfo" file for short) describing how the core httk functions should
#' interact with the model.
#'
#' The modelinfo file acts as a reference guide for each HTTK model providing
#' model-specific global variables, mappings between R and C variables and
#' functions, as well as criteria indicating data that are relevant for model
#' evaluation.
#'
#' Each modelinfo file saves the standard set of descriptors to the
#' ‘model.list’ object within httk, which holds the model-specific
#' information for all models in the package. The ‘model.list’ object allows
#' the ‘core’ functions to identify and interact with all models in a
#' standardized manner using standardized descriptors.
#'
#' Beyond basic definitions for the relevant functions, the modelinfo file
#' describes the default units and state of matter (“gas” or “liquid”) for
#' each compartment in the model.
#'
#' The variable “param.names” lists all the
#' parameters used by R, which sometimes includes things such as logP,
#' which underle the parameters used by the ODE system but are not directly
#' needed by the model. The “Rtosolvermap” variable identifies which R
#' parameters link to C parameters described by the “compiled.param.names”
#' variable in the modelinfo file
#'
#' See Table 5 and Supplemental Information
#' in \insertCite{davidson2025enabling}{httk} for a description of the
#' standard descriptors included in modelinfo files.
#'
#' \code{\link{list_models}}
#'
#' @param descriptor The descriptor to retrieve. See Table 5 and Supplemental
#' Information in \insertCite{davidson2025enabling}{httk} for a full list as
#' of 2025.
#'
#' @param model The model for which to retrieve the descriptor.
#' See \code{\link{list_models}} for available models.
#' Default is "sumclearancesplus".
#' @param suppress.messages Whether or not the output messages are suppressed
#' (default FALSE).
#'
#' @return The entry from model.list corresponding to arguments descriptor and model.
#'
#' @author John Wambaugh
#'
#' @seealso \code{\link{list_models}}
#'
#' @concept standard model tools
#'
#' @references
#' \insertRef{davidson2025enabling}{httk}
#'
#' @examples
#' get_modelinfo("param.names")
#' get_modelinfo("DOI",model="dermal_1subcomp")
#'
#' @export get_modelinfo
get_modelinfo <- function(descriptor,
model="sumclearancesplus",
suppress.messages=FALSE)
{
model <- tolower(model)
if (!(model %in% tolower(names(model.list))))
{
if (!suppress.messages)
message(paste("Model",
model,
"is not in the list of available models. See list_models() for available models."))
stop()
}
if (!(descriptor %in% names(model.list[[
which(tolower(names(model.list)) %in%
model)]])))
{
if (!suppress.messages)
message(paste0("Descriptor ",
descriptor,
" is not explicitly defined for model ",
model,
"."))
}
return(model.list[[which(tolower(names(model.list)) %in%
model)]][[descriptor]])
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.