Skip to main content

R Orchestrator

TypeFlexible
Image$DATAOPS_R_RUNNER_IMAGE

The R Orchestrator is a flexible orchestrator that incorporates r-base version 4.2 to execute R scripts in a DataOps pipeline and includes several helpful R libraries, such as:

  • DBI
  • devtools
  • dplyr
  • odbc
  • pracma
  • plyr
  • RJDBC
  • syuzhet
  • tidyvers

Usage

You can create your own scripts in your repo e.g. /scripts/myscript.r and run this from a job. For example:

pipelines/includes/local_includes/r_jobs/my_r_job.yml
"My R Job":
extends:
- .agent_tag
stage: "My Stage"
image: $DATAOPS_R_RUNNER_IMAGE
variables:
script:
- R my-script.r
icon: ${R_ICON}

Supported Parameters

None

Example Jobs

pipelines/includes/local_includes/r_jobs/my_r_job.yml
"My R Job":
extends:
- .agent_tag
stage: "Additional Configuration"
image: $DATAOPS_R_RUNNER_IMAGE
variables:
SCRIPT_PATH: $CI_PROJECT_DIR/scripts/my-script.r
script:
- R $SCRIPT_PATH
icon: ${R_ICON}

If you need access to the DataOps vault, include /dataops in your script tag. For example:

script:
- /dataops
- R /scripts/myscript.r

And your script will be able to read and write from and to the vault, respectively.

Project Resources

None

Host Dependencies (and Resources)

None