/clustr

Scripts for running 'CascadeDashboard' on the MRC Cluster

Primary LanguageR

clustr

A place to store scripts for automating access to the DIDE cluster.

Works as a wrapper around Rich's great didewin tools!

This is really for internal use and will not be that useful to anyone else.

## login to cluster (didewin config and login)
# packages argument now accepts GitHub package paths and can distinguish between CRAN / GitHub
# Caution: not functional for anything other than CRAN and GitHub packages
clustr::login(username = "dide_username",
              remotewd = "directory_on_network_share",
              sources = c("source_files.R"),
              packages = c("devtools", "github_username/package"),
              cluster = "MRC",
              log = TRUE)

## mount network share
clustr::mount(username, remotewd)

## open mounted network share
clustr::open_remote(username, remotewd)

## umount network share
clustr::logout(username)

## submit job to cluster
# wrapper around obj$enqueue()
# still in development
clustr::submit(obj, x)