Description Usage Arguments Value Examples
View source: R/insert_slurm_header.R
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!
1 2 3 | insert_slurm_header(partition = "milkun", email_type = "FAIL",
email = "mirzaceng@gmail.com", memory = "20G", time = "6:00:00",
log_file = "")
|
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: |
None.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.