Skip to contents

Reads the sensitivity label from an Excel file using openxlsx2::wb_get_mips. Returns the label name, 'no label' if none is found, or errors if unexpected.

Usage

read_sensitivity_label(file)

Arguments

file

Path to the Excel file (.xlsx or .xls)

Value

The sensitivity label name, or 'no label' if none is found.

Examples

if (FALSE) { # \dontrun{
# Read the sensitivity label from an Excel file
# Returns the label name or "no label" if none exists
label <- read_sensitivity_label("myfile.xlsx")
print(label)  # "Personal"
} # }