This function creates a metadata file that stores information about a NONMEM model, including its description, tags, and lineage information. The metadata is stored in a structured format that can be used for model tracking and documentation.
Examples
if (FALSE) { # \dontrun{
# Create basic metadata for a model
set_metadata_file("run001.mod", description = "Base population PK model")
# Create metadata using a model object
model <- read_model("run001.mod")
set_metadata_file(model, description = "Base population PK model")
# Create metadata with tags and lineage
set_metadata_file(
"run002.mod",
description = "PK model with covariate effects",
tags = c("population", "pk", "covariates"),
based_on = c("run001.mod")
)
} # }