Skip to content

Create Script

glue_create_script R Documentation

Transforms a directed acyclic graph (DAG) into code

Description

Transforms a directed acyclic graph (DAG) into code.

Usage

glue_create_script(DagNodes, DagEdges, Language)

Arguments

DagNodes

A list of the nodes in the DAG.

DagEdges

A list of the edges in the DAG.

Language

The programming language of the resulting code from the DAG.

Value

A list with the following syntax:

list(
  PythonScript = "string",
  ScalaCode = "string"
)

Request syntax

svc$create_script(
  DagNodes = list(
    list(
      Id = "string",
      NodeType = "string",
      Args = list(
        list(
          Name = "string",
          Value = "string",
          Param = TRUE|FALSE
        )
      ),
      LineNumber = 123
    )
  ),
  DagEdges = list(
    list(
      Source = "string",
      Target = "string",
      TargetParameter = "string"
    )
  ),
  Language = "PYTHON"|"SCALA"
)