extract_command_string: Search a cluster submitted command string for some pattern

extract_command_stringR Documentation

Search a cluster submitted command string for some pattern

Description

Intended to pull Rstudio image information - Currently only supports one valid string found per submission command

Usage

extract_command_string(
  submit_command_text,
  regex_to_extract,
  regex_to_ignore = NULL
)

Arguments

submit_command_text

[chr] the result of calling "squeue -j <INT> -o submitline%<INT>"

regex_to_extract

[regex] pattern to extract from 'submit_command_text'

regex_to_ignore

[regex] ignore strings found with this pattern

Value

[chr] vector of strings extracting/ignoring as requested


epi-sam/SamsElves documentation built on June 12, 2025, 7 a.m.