Skip to content

Commit

Permalink
Actually, provide 'partition_df' as data since it was useful to provi…
Browse files Browse the repository at this point in the history
…de summaries of the partitions, and some info needed to be anonymized (and thus 'partition_df's origin should be documented)
  • Loading branch information
Nick-Eagles committed Oct 10, 2023
1 parent 4574019 commit f39a3df
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
#' A tibble with 100 rows and 10 columns describing currently running jobs (at
#' the time of creation)
"job_info_df"

#' Example output from \code{partition_info(partition = NULL, all_nodes = FALSE)}
#'
#' A tibble with 5 rows and 7 columns giving information about memory and CPUs
#' as available at the time of creation)
"partition_df"
7 changes: 7 additions & 0 deletions data-raw/partition_df.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
partition_df = partition_info(partition = NULL, all_nodes = FALSE) |>
# Randomly choose 5 partitions
slice_sample(n = 5) |>
# Remove information about true partition names
mutate(partition = paste0('partition_', 1:5))

usethis::use_data(partition_df, overwrite = TRUE)
Binary file added data/partition_df.rda
Binary file not shown.
Binary file removed inst/extdata/partition_df.rds
Binary file not shown.
17 changes: 17 additions & 0 deletions man/partition_df.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f39a3df

Please sign in to comment.