From 631047f810031511610ae6db2db727b874ae948b Mon Sep 17 00:00:00 2001 From: Matthew Henderson Date: Tue, 20 Aug 2024 15:47:44 +0100 Subject: [PATCH] Prepare release (v0.1.0) (#30) * Add NEWS.md. * Update version number. * Import combn from utils. * Fix formatting in NEWS.md. --- DESCRIPTION | 2 +- NAMESPACE | 1 + NEWS.md | 9 +++++++++ R/unused-pairs.R | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 NEWS.md diff --git a/DESCRIPTION b/DESCRIPTION index cf376f7..849700e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: wallis Title: Room squares in R -Version: 0.0.0.9007 +Version: 0.1.0 Authors@R: person("Matthew", "Henderson", , "matthew.james.henderson@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0001-7949-8208")) diff --git a/NAMESPACE b/NAMESPACE index ebf3205..e17afda 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -10,3 +10,4 @@ export(n_filled_cells) export(unused_pairs) export(volume) importFrom(R6,R6Class) +importFrom(utils,combn) diff --git a/NEWS.md b/NEWS.md new file mode 100644 index 0000000..951e16e --- /dev/null +++ b/NEWS.md @@ -0,0 +1,9 @@ +# wallis (development version) + +# wallis 0.1.0 + +* A new package containing functions for implementing greedy algorithms for constructing maximal partial Room squares. +* Functions for testing if squares are partial Room squares, Room squares or maximal partial Room squares. +* Functions for calculating the volume of partial Room squares. +* A Room R6 class provided as an alternative interface for algorithm implementation. +* Some convenient combinatorial functions for constructing sets of pairs. diff --git a/R/unused-pairs.R b/R/unused-pairs.R index 3aaa4e7..43023e9 100644 --- a/R/unused-pairs.R +++ b/R/unused-pairs.R @@ -5,6 +5,8 @@ #' #' @return A list of pairs not used in R. #' @export +#' +#' @importFrom utils combn unused_pairs <- function(R, n) { used_pairs <- R |> dplyr::select(first, second)