### Install slurmtools from GitHub Source: https://github.com/a2-ai/slurmtools/blob/main/README.md Installs the development version of the slurmtools package directly from GitHub using the 'pak' package manager. This is the recommended way to get the latest features and bug fixes. ```R # install.packages("pak") pak::pkg_install("a2-ai/slurmtools") ``` -------------------------------- ### Configure slurmtools Options Source: https://github.com/a2-ai/slurmtools/blob/main/README.md Sets global options for slurmtools to define paths for submission logs, BBI configuration, and Slurm job templates. These options are crucial for the package to locate necessary files and directories for job submission. ```R nonmem = file.path(here::here(), "vignettes", "model", "nonmem") options('slurmtools.submission_root' = file.path(nonmem, "submission-log")) options('slurmtools.bbi_config_path' = file.path(nonmem, "bbi.yaml")) options('slurmtools.slurm_job_template_path' = file.path(nonmem, 'slurm-job-bbi.tmpl')) library(slurmtools) ``` -------------------------------- ### Retrieve and Display Slurm Jobs Source: https://github.com/a2-ai/slurmtools/blob/main/README.md Fetches a table of currently running or recently completed Slurm jobs for a specified user using 'squeue'. The results are formatted as a tibble and can be displayed using 'knitr::kable' for better readability. ```R knitr::kable(get_slurm_jobs(user = 'matthews')) ``` -------------------------------- ### Submit Nonmem Job to Slurm Source: https://github.com/a2-ai/slurmtools/blob/main/README.md Reads a Nonmem model using the 'bbr' package and submits it to Slurm for execution. The function handles job submission via 'sbatch' and returns the job status, stdout, and stderr. The 'overwrite' argument controls whether existing submission files are replaced. ```R mod_number <- "1001" mod <- bbr::read_model(file.path(nonmem, mod_number)) submit_slurm_job(mod, overwrite = TRUE) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.