Add model version

add_model_version(session, model, exact = TRUE, minor = FALSE, ...)

Arguments

session

viya_connection object, obtained through session function

model

MMmodel object, project ID or model name. If name, will try to find a single model with exact name match. See exact parameter

exact

the filter query should use "contains" for partial match or "eq" for exact match

minor

if TRUE, new minor version is created, by default a major version is created.

...

additional parameters to be passed to httr::POST such as httr::add_headers

Value

A data.frame with the list of projects

Examples


if (FALSE) { # \dontrun{
my_model <- get_model(sess, model = "MyModel")

nvmodel <- add_model_version(sess,  my_model)

nvmodel
} # }