Add model content

add_model_content(session, file, model, role = NULL, exact = TRUE, ...)

Arguments

session

viya_connection object, obtained through session function

file

path to file

model

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

role

file role, such as "scoreResource" and "score"

exact

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

...

pass to sasctl::vPOST() function

Value

a MMcontent class list

Examples


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

myContent <- add_model_content(sess, file = "my_fancy_file.R", model = my_model)
myContent
} # }