Skip to contents

Assert that the dataframe being passed to the function is not empty

Usage

assert_df_not_empty(x, arg = "x", call = rlang::caller_env(), add_err_msg = "")

Arguments

x

the dataframe to check

arg

the name of the dataframe to check

call

Calling environment to be passed to cli::cli_abort() for traceback.

add_err_msg

add_err_msg string containing an additional error message, default is the empty string ("")

Value

NULL invisible