add_model_content.RdAdd model content
add_model_content(session, file, model, role = NULL, exact = TRUE, ...)viya_connection object, obtained through session function
path to file
MMmodel object, model ID or model name. If name, will try to find a single model with exact name match. See exact parameter
file role, such as "scoreResource" and "score"
the filter query should use "contains" for partial match or "eq" for exact match
pass to sasctl::vPOST() function
a MMcontent class list
if (FALSE) { # \dontrun{
my_model <- get_model(sess, "MyModel")
myContent <- add_model_content(sess, file = "my_fancy_file.R", model = my_model)
myContent
} # }