Last chance! 50% off unlimited learning
Sale ends in
Run a template script
run_template(id, arguments, JSONValue = FALSE, ...)
id of the template script.
list of arguments to the script.
bool (default FALSE) If true, returns the JSON values instead of the file_ids
additional arguments to scripts_post_custom
If JSONValue is FALSE, File ids of any run outputs are returned. If JSONValue is TRUE, JSON values of first JSON run output is returned. If there are no JSON outputs, warning message is printed and nothing is returned If there are more than 1 JSON outputs, warning message is printed and the first JSON output is returned.
Other script_utils: civis_script
,
fetch_output_file_ids
,
run_civis
# NOT RUN {
# Try a search for the template id
search_list('template name', type = 'template_script')
# Run the template
run_template(id, arguments = list(arg1 = 1, arg2 = 2), ...)
# Run the template and return JSON value outputs
run_template(id, arguments = list(arg1 = 1, arg2 = 2), JSONValue=TRUE, ...)
# }
Run the code above in your browser using DataLab