% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_summary_report.R
\name{evaluate_risk_highlighting}
\alias{evaluate_risk_highlighting}
\title{Evaluate Risk Highlighting for Rejection and Mitigation}
\usage{
evaluate_risk_highlighting(risk_analysis_output)
}
\arguments{
\item{risk_analysis_output}{A data frame containing at least two columns:
\describe{
  \item{Metric}{Character vector of metric names (e.g., "CMD Check", "Code Coverage").}
  \item{Risk_Level}{Character vector of risk levels (e.g., "low", "medium", "high").}
}}
}
\value{
status - 3 possible values - "Accepted", "Mitigation Needed", "Rejected"
}
\description{
This function analyzes risk levels for key metrics ("CMD Check" and "Code Coverage")
and other metrics to determine whether a report should be highlighted for rejection
or mitigation based on predefined rules.
}
\details{
**Rejection Logic:**
- Reject if BOTH key metrics ("CMD Check" and "Code Coverage") are medium/high.
- OR if there are severe other risks (greater equal to 2 high OR greater equal to 3 medium)
- AND at least one key metric is not low.

**Mitigation Logic:**
- Mitigate if only one key metric is medium/high OR other risks are significant
  (greater equal to 1 high OR greater equal to 2 medium), provided the report is not rejected.
}
\keyword{internal}
