insert_slurm_header: Insert SLURM header

Description Usage Arguments Value Examples

View source: R/insert_slurm_header.R

Description

Use this function to insert SLURM header to the top of the current R script. This function will only work in RStudio, as it uses rstudioapi package to add text. Default values are higly customized for me!

Usage

1
2
3
insert_slurm_header(partition = "milkun", email_type = "FAIL",
  email = "mirzaceng@gmail.com", memory = "20G", time = "6:00:00",
  log_file = "")

Arguments

partition

Character. Cluster partition. Default is milkun. Use either milkun or milkunshort.

email_type

Character. Type of email to send to user. See SLURM help. Default is FAIL.

email

Character. Email address to which send the emails to. Default is mirzaceng@gmail.com.

memory

Character. Memory allocated to the process. Default is 20G. Add the required unit to the memory amount.

time

Character. Time allocated to the process. Default is 6 hours (6:00:00).

log_file

Character. Path for the log file. Default path is empty. Example: log_file = "/vol/milkun/my_log.log"

Value

None.

Examples

1

MirzaCengic/Rahat documentation built on May 28, 2019, 1:53 p.m.