Skip to contents

This function exports all data frames in a list to an Excel file (one sheet per data frame) and any HTML widgets (e.g., plotly, leaflet) to a self-contained HTML file.

Usage

export_stats(list_name, output_name, path)

Arguments

list_name

A named list containing data frames and/or HTML widget objects

output_name

Base name for output files (without extension). The function will create two files: output_name.xlsx and output_name.html.

Value

Invisible NULL. The function primarily produces files as side effects: - An Excel file containing all data frames (if any exist) - An HTML file containing the widget (if any exists) - Messages indicating which files were created

Details

The function handles special characters in data frame names by removing them before creating Excel sheets. HTML widgets are saved as self-contained files (no external dependencies) using htmlwidgets::saveWidget().

Examples