Nothing
#' Preprocess Covariates needed (or other data items)
#'
#' @param ui rxode2 ui
#' @inheritParams nlmixr2
#' @return list with the ui (possibly modified)
#' @export
#' @author Matthew L. Fidler
.nlmixr0preProcessCovariatesPresent <- function(ui, est, data, control) {
# Could possibly use to stack data or use an DV or IDV different
# than what is present in the data
if (!missing(data) &&
length(data) > 0L &&
isTRUE(attr(utils::getS3method("nlmixr2Est", est), "covPresent"))) {
.covNames <- ui$covariates
colnames(data) <- vapply(names(data), function(x) {
if (any(x == .covNames)) {
x
} else {
toupper(x)
}
}, character(1))
requiredCols <- c("TIME", .covNames)
checkmate::assert_names(names(data), must.include = requiredCols)
}
NULL
}
preProcessHooksAdd(".nlmixr0preProcessCovariatesPresent", .nlmixr0preProcessCovariatesPresent)
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.