From bf5c026c92954024d658baae6c37b0c995eb4b14 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:30:11 -0400 Subject: [PATCH 1/5] chore(docs): wip fix pkgdown --- pkgdown/_pkgdown.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index 4357797..b3f18f1 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -71,7 +71,7 @@ reference: desc: > Behaviors to apply when packages fail to meet the expressed criteria. - contents: - - action_disallow + - action_* - last_rejected - last_rejected_permit From 1081f0e288867ca8b720e7d16ea4c30acbd78da3 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:51:47 -0400 Subject: [PATCH 2/5] chore(docs): wip fix pkgdown --- pkgdown/_pkgdown.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index b3f18f1..e96e6ee 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -71,7 +71,7 @@ reference: desc: > Behaviors to apply when packages fail to meet the expressed criteria. - contents: - - action_* + - starts_with("action_") - last_rejected - last_rejected_permit From 1b79d35ce34ce6e25621a8ebbe4f4b824145b1b0 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 20 Aug 2026 15:59:13 -0400 Subject: [PATCH 3/5] chore(docs): rebuild docs --- DESCRIPTION | 2 +- NAMESPACE | 1 + R/actions.R | 2 ++ man/default_actions.Rd | 11 +++++++++++ pkgdown/_pkgdown.yml | 3 ++- 5 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 man/default_actions.Rd diff --git a/DESCRIPTION b/DESCRIPTION index a6a3067..daf9ea4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -38,4 +38,4 @@ Remotes: val.meter=github::pharmaR/val.meter Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.2 +RoxygenNote: 7.3.3 diff --git a/NAMESPACE b/NAMESPACE index 99579f0..a77cff8 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,6 +1,7 @@ # Generated by roxygen2: do not edit by hand export(action_disallow) +export(default_actions) export(last_rejected) export(last_rejected_permit) export(package_filter) diff --git a/R/actions.R b/R/actions.R index c5bf811..927d155 100644 --- a/R/actions.R +++ b/R/actions.R @@ -1,3 +1,5 @@ +#' A default set of package tools to impose actions upon +#' @export default_actions <- function() { x <- list( list( diff --git a/man/default_actions.Rd b/man/default_actions.Rd new file mode 100644 index 0000000..7543c5d --- /dev/null +++ b/man/default_actions.Rd @@ -0,0 +1,11 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/actions.R +\name{default_actions} +\alias{default_actions} +\title{A default set of package tools to impose actions upon} +\usage{ +default_actions() +} +\description{ +A default set of package tools to impose actions upon +} diff --git a/pkgdown/_pkgdown.yml b/pkgdown/_pkgdown.yml index e96e6ee..ddc13c2 100644 --- a/pkgdown/_pkgdown.yml +++ b/pkgdown/_pkgdown.yml @@ -71,7 +71,8 @@ reference: desc: > Behaviors to apply when packages fail to meet the expressed criteria. - contents: - - starts_with("action_") + - default_actions + - action_disallow - last_rejected - last_rejected_permit From 9c49d553cc4187b30253668877f63f207979720a Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 20 Aug 2026 16:08:27 -0400 Subject: [PATCH 4/5] chore(docs): rebuild docs --- R/actions.R | 1 + man/action_disallow.Rd | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 man/action_disallow.Rd diff --git a/R/actions.R b/R/actions.R index 927d155..0a7352b 100644 --- a/R/actions.R +++ b/R/actions.R @@ -64,6 +64,7 @@ last_rejected_permit <- function(quiet = FALSE) { invisible(new_exceptions) } +#' Disallow an action #' @export action_disallow <- function(pkgs, db, envir = parent.frame()) { pkgs_deps <- unlist(tools::package_dependencies( diff --git a/man/action_disallow.Rd b/man/action_disallow.Rd new file mode 100644 index 0000000..09c6582 --- /dev/null +++ b/man/action_disallow.Rd @@ -0,0 +1,11 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/actions.R +\name{action_disallow} +\alias{action_disallow} +\title{Disallow an action} +\usage{ +action_disallow(pkgs, db, envir = parent.frame()) +} +\description{ +Disallow an action +} From 9c067966de45414779c86accdbb03dbc32ba9a41 Mon Sep 17 00:00:00 2001 From: dgkf <18220321+dgkf@users.noreply.github.com> Date: Thu, 20 Aug 2026 16:16:57 -0400 Subject: [PATCH 5/5] chore(docs): rebuild docs --- R/actions.R | 10 ++++++++++ man/action_disallow.Rd | 7 +++++++ man/default_actions.Rd | 7 +++++++ man/last_rejected.Rd | 18 ++++++++++++++++++ man/last_rejected_permit.Rd | 18 ++++++++++++++++++ 5 files changed, 60 insertions(+) create mode 100644 man/last_rejected.Rd create mode 100644 man/last_rejected_permit.Rd diff --git a/R/actions.R b/R/actions.R index 0a7352b..be5ac27 100644 --- a/R/actions.R +++ b/R/actions.R @@ -1,4 +1,6 @@ #' A default set of package tools to impose actions upon +#' +#' @family actions #' @export default_actions <- function() { x <- list( @@ -45,11 +47,17 @@ set_last_rejected <- function(pkgs) { last$rejected <- pkgs } +#' Retrieve the last package rejection, imposed by a criteria +#' +#' @family actions #' @export last_rejected <- function() { last$rejected } +#' Permit the last package rejection +#' +#' @family actions #' @export last_rejected_permit <- function(quiet = FALSE) { new_exceptions <- setdiff(last_rejected(), opt("exceptions")) @@ -65,6 +73,8 @@ last_rejected_permit <- function(quiet = FALSE) { } #' Disallow an action +#' +#' @family actions #' @export action_disallow <- function(pkgs, db, envir = parent.frame()) { pkgs_deps <- unlist(tools::package_dependencies( diff --git a/man/action_disallow.Rd b/man/action_disallow.Rd index 09c6582..3211e80 100644 --- a/man/action_disallow.Rd +++ b/man/action_disallow.Rd @@ -9,3 +9,10 @@ action_disallow(pkgs, db, envir = parent.frame()) \description{ Disallow an action } +\seealso{ +Other actions: +\code{\link{default_actions}()}, +\code{\link{last_rejected}()}, +\code{\link{last_rejected_permit}()} +} +\concept{actions} diff --git a/man/default_actions.Rd b/man/default_actions.Rd index 7543c5d..76085f8 100644 --- a/man/default_actions.Rd +++ b/man/default_actions.Rd @@ -9,3 +9,10 @@ default_actions() \description{ A default set of package tools to impose actions upon } +\seealso{ +Other actions: +\code{\link{action_disallow}()}, +\code{\link{last_rejected}()}, +\code{\link{last_rejected_permit}()} +} +\concept{actions} diff --git a/man/last_rejected.Rd b/man/last_rejected.Rd new file mode 100644 index 0000000..09f04fd --- /dev/null +++ b/man/last_rejected.Rd @@ -0,0 +1,18 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/actions.R +\name{last_rejected} +\alias{last_rejected} +\title{Retrieve the last package rejection, imposed by a criteria} +\usage{ +last_rejected() +} +\description{ +Retrieve the last package rejection, imposed by a criteria +} +\seealso{ +Other actions: +\code{\link{action_disallow}()}, +\code{\link{default_actions}()}, +\code{\link{last_rejected_permit}()} +} +\concept{actions} diff --git a/man/last_rejected_permit.Rd b/man/last_rejected_permit.Rd new file mode 100644 index 0000000..e9d736f --- /dev/null +++ b/man/last_rejected_permit.Rd @@ -0,0 +1,18 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/actions.R +\name{last_rejected_permit} +\alias{last_rejected_permit} +\title{Permit the last package rejection} +\usage{ +last_rejected_permit(quiet = FALSE) +} +\description{ +Permit the last package rejection +} +\seealso{ +Other actions: +\code{\link{action_disallow}()}, +\code{\link{default_actions}()}, +\code{\link{last_rejected}()} +} +\concept{actions}