Skip to contents

validate_data() checks whether the provided dataset has at least one row. If the data is empty, it triggers a validation error with a specified message.

Usage

validate_data(data, message = "No data to display")

Arguments

data

A data frame to validate

message

A character string specifying the message to display when the data is empty. Defaults to "No data to display".

Value

This function does not return a value. It triggers a validation error in a Shiny app if the dataset is empty, preventing further execution.