From 6288b46068ec226e22201e6cd6cb3884976caf37 Mon Sep 17 00:00:00 2001 From: Markus Ankenbrand Date: Fri, 7 Jun 2024 22:29:12 +0200 Subject: [PATCH] Fix note about ellipsis not being imported --- NAMESPACE | 1 + R/aaa.R | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/NAMESPACE b/NAMESPACE index 440d218..b3dc072 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -197,6 +197,7 @@ export(track_info) export(unnest_exons) export(write_gff3) import(dplyr) +import(ellipsis) import(ggplot2) import(grid) import(rlang) diff --git a/R/aaa.R b/R/aaa.R index 1d2440b..b31af2a 100644 --- a/R/aaa.R +++ b/R/aaa.R @@ -127,3 +127,11 @@ ggplot2__make_labels <- utils::getFromNamespace("make_labels", "ggplot2") ellipsis__dots <- utils::getFromNamespace("dots", "ellipsis") scales__force_all <- utils::getFromNamespace("force_all", "scales") purrr__as_mapper.default <- utils::getFromNamespace("as_mapper.default", "purrr") + +# Additional fix for seamingly unused package in imports due to the workaround above +# https://forum.posit.co/t/new-r-cmd-check-note-in-r-4-2-0-for-imports-field/143153/4 +#' @import ellipsis +#' @noRd +dummy <- function() { + ellipsis::safe_median +} \ No newline at end of file