Skip to contents

Reads the list of R minor sensitive packages from an issue body, one package per line. Surrounding whitespace and Markdown list bullets (-, *, +) are ignored.

If interval, updated_packages or new_packages is set, it checks for updates of these packages in the CRAN repository and returns a filtered response.

Usage

get_r_minor_sensitive_packages(
  r_minor_packages_forge_type = "Forgejo",
  r_minor_packages_issue_url = NULL,
  interval = NULL,
  updated_packages = NULL,
  new_packages = NULL
)

Arguments

r_minor_packages_forge_type

(character)
Forge type to query R minor sensitive packages from. Available options are "Forgejo" and "GitHub".

r_minor_packages_issue_url

(character)
URL to issue containing R minor sensitive packages.

interval

(lubridate::Interval)
Date interval. A single Date is coerced into the one-day interval covering that day.

updated_packages

(character)
Vector of updated packages CRAN to check against.

new_packages

(character)
Vector of new packages on CRAN to check against.

Value

Without interval, updated_packages and new_packages, a character vector of the package names listed in the issue. Otherwise the rows of the updated and new packages (name, version) that are listed in the issue, as a data.frame with zero rows when none match.