From f39a3df80a4d3b99e28e8daac9ddc07a2a692892 Mon Sep 17 00:00:00 2001 From: Nick-Eagles Date: Tue, 10 Oct 2023 13:12:13 -0400 Subject: [PATCH] Actually, provide 'partition_df' as data since it was useful to provide summaries of the partitions, and some info needed to be anonymized (and thus 'partition_df's origin should be documented) --- R/data.R | 6 ++++++ data-raw/partition_df.R | 7 +++++++ data/partition_df.rda | Bin 0 -> 429 bytes inst/extdata/partition_df.rds | Bin 1208 -> 0 bytes man/partition_df.Rd | 17 +++++++++++++++++ 5 files changed, 30 insertions(+) create mode 100644 data-raw/partition_df.R create mode 100644 data/partition_df.rda delete mode 100644 inst/extdata/partition_df.rds create mode 100644 man/partition_df.Rd diff --git a/R/data.R b/R/data.R index c40852c..279fc62 100644 --- a/R/data.R +++ b/R/data.R @@ -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" diff --git a/data-raw/partition_df.R b/data-raw/partition_df.R new file mode 100644 index 0000000..a4c148e --- /dev/null +++ b/data-raw/partition_df.R @@ -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) diff --git a/data/partition_df.rda b/data/partition_df.rda new file mode 100644 index 0000000000000000000000000000000000000000..13c01944e44adbd83d1e20164e78607c56809001 GIT binary patch literal 429 zcmV;e0aE@#T4*^jL0KkKSzRx?(f|O^|NsBL$x|T-eiF*0AwCe115o>Gy~FPX!RbDWO|-z5aUBY8UPvq000dD z0002U003eD$tHxD^o=0XKn8#?fDHp628Mtc0004@eLq9v(YHWGA&XlQ8$qSU0kd4S z5NFAiS7u|5M@3i(Zg9Oi3fdz0pgG8@w=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R|HyY}{`HQ^5yiOPcB7BtvZ{r& zP%LV6Ni-HPx+F8GDvCd%MEsrY9Lm!BZXTw^G&wvMvvzBwIgQ?AP95={ZjLMoMM+zQ zdX-er9@DxMbq>NJ>&V<>GSpbYWh6vT#6;2+W@l$Fv4y5to~YUAW34^x4+OboCYG^B WK-OeeP$jX5HS;H)cw82e4gdi9Ra$TW diff --git a/man/partition_df.Rd b/man/partition_df.Rd new file mode 100644 index 0000000..180ee6a --- /dev/null +++ b/man/partition_df.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{partition_df} +\alias{partition_df} +\title{Example output from \code{partition_info(partition = NULL, all_nodes = FALSE)}} +\format{ +An object of class \code{tbl_df} (inherits from \code{tbl}, \code{data.frame}) with 5 rows and 7 columns. +} +\usage{ +partition_df +} +\description{ +A tibble with 5 rows and 7 columns giving information about memory and CPUs +as available at the time of creation) +} +\keyword{datasets}