Skip to content

Executing R scripts from Dagster #18972

Answered by PedramNavid
philiporlando asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @philiporlando and fellow R-user.

You have a few options, but I think the simplest would be to use the dagster-docker op.

From the docs:

from dagster_docker import docker_container_op

from dagster import job

first_op = docker_container_op.configured(
    {
        "image": "busybox",
        "command": ["echo HELLO"],
    },
    name="first_op",
)
second_op = docker_container_op.configured(
    {
        "image": "busybox",
        "command": ["echo GOODBYE"],
    },
    name="second_op",
)

@job
def full_job():
    second_op(first_op())

For more complex integrations, you might find Dagster Pipes interesting as well: https://docs.dagster.io/guides/dagster-pipes

Let me know if this is…

Replies: 1 comment 13 replies

Comment options

You must be logged in to vote
13 replies
@philiporlando
Comment options

@philiporlando
Comment options

@alangenfeld
Comment options

@philiporlando
Comment options

@philiporlando
Comment options

Answer selected by philiporlando
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: integrations Related to general integrations, including requests for a new integration area: dagster-pipes Related to Dagster Pipes
3 participants