Skip to contents

Used in error messages, Shiny modals, and documentation. Returns plain text suitable for stop() or display.

Usage

maintainer_dependency_hint(
  doi = NULL,
  audit = NULL,
  scope = c("study", "package"),
  package = NULL,
  missing_r = NULL,
  include_path_hints = TRUE
)

Arguments

doi

Optional study DOI for single-study install hints.

audit

Optional study_system_compatibility object from check_study_compatibility().

scope

"study" or "package" for package-backed studies.

package

Package name when scope = "package".

missing_r

Character vector of missing CRAN packages.

include_path_hints

Include .Renviron lines for Python/Stata.

Value

Character scalar (multi-line).

Examples

if (FALSE) { # \dontrun{
maintainer_dependency_hint("10.1017/S0003055403000534")
maintainer_dependency_hint("10.1017/S0003055422000284")
maintainer_dependency_hint("10.1017/S0003055426101749")
} # }