Skip to content

Commit

Permalink
Make pthe 'partition' column contain the full set of factor levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Oct 13, 2023
1 parent e51e88b commit 15ef846
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/job_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ job_info <- function(user = Sys.getenv("USER"), partition = "shared") {
),
sep = "|"
) |>
as_tibble()
as_tibble() |>
mutate(PARTITION = factor(PARTITION))

# Filter to the requested user and partition. Passing NULL values to
# those variables signals to not subset/ filter.
Expand Down
3 changes: 2 additions & 1 deletion R/partition_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ partition_info <- function(partition = "shared", all_nodes = FALSE) {
)

part_df <- read.csv(text = system(command, intern = TRUE), sep = "|") |>
as_tibble()
as_tibble() |>
mutate(PARTITION = factor(PARTITION))

# Subset by partition if not null
if (!is.null(partition)) {
Expand Down

0 comments on commit 15ef846

Please sign in to comment.