R Orchestrator
Type | Flexible |
---|---|
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