From 4326ac3cd9a9a5263d191bce88bf4d62abf6ad81 Mon Sep 17 00:00:00 2001 From: Matthew Henderson Date: Tue, 20 Aug 2024 14:43:37 +0000 Subject: [PATCH] Import combn from utils. --- NAMESPACE | 1 + R/unused-pairs.R | 2 ++ 2 files changed, 3 insertions(+) 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/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)