Skip to contents

This function takes a dataframe as input and returns a base64 encoded CSV object. The encoded object can be embedded into an HTML document directly, with a button to download the file without pointing to a local file.

Usage

encode_df_to_base64(df, report_type = NA)

Arguments

df

A dataframe to be encoded.

report_type

(Optional) A string specifying for which report generation this function is called. Generates different Excel sheet names based on the report_type.

Value

A character string containing the base64 encoded CSV data.