## ----include = FALSE----------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(abba)

## ----create_batch_job, eval=FALSE---------------------------------------------
# create_batch_job("path/to/job_directory")
# # Job file created at path/to/job_directory/job.Rmd

## ----example_call, eval=FALSE-------------------------------------------------
# abba::abba_submit_and_get_log(
#   "/path/to/file.R",
#   container = "<container_image_name>"
#   )

## ----mount_example, eval=FALSE------------------------------------------------
# list(
#   volumes=list(
#     list(name='mount1', nfs=list(
#       server='0.0.0.0',
#       path='/mnt/remote/mount1')
#       )
#     ),
#   volumeMounts=list(
#     list(name='mount1', mountPath='/mnt/local/mount1')
#     )
#   )
# )

## ----set_env_vars, eval=FALSE-------------------------------------------------
# Sys.setenv(
#   ABBA_API_ADDRESS = "https://your-connect-server.com/abba_apo",
#   ABBA_API_KEY = "<your API key>"
# )

