Skip to contents

Compares configured date fields with a selected period to support local records review. It does not determine or enforce institutional policy.

Usage

check_data_retention_policy(
  data = NULL,
  retention_period = c("academic_year", "semester", "quarter", "custom"),
  custom_retention_days = NULL,
  date_column = NULL,
  current_date = Sys.Date()
)

Arguments

data

Data frame to inspect for retention-period review

retention_period

Retention period: "academic_year", "semester", "quarter", or "custom"

custom_retention_days

Custom retention period in days (for "custom" period)

date_column

Column name containing dates to check

current_date

Current date for comparison (default: Sys.Date())

Value

List containing review status and retention analysis. The passed field is the preferred status name; compliant is retained as a backward-compatible alias.