insp_save_table: Save an HTML Table Produced by 'insp_create_table()'

insp_save_tableR Documentation

Save an HTML Table Produced by insp_create_table()

Description

insp_save_table() saves a reactable object to the specified path. The defaults are intended for saving the inspections data table.

Usage

insp_save_table(
  .table,
  path = coviData::path_create("V:/Compliance/Inspection Data for Publishing/Table/",
    paste0("insp_table_", Sys.Date()), ext = "html"),
  force = FALSE
)

Arguments

.table

A datatables object

path

The location to save the table

force

Should an existing file at path be overwritten if a conflict occurs?

Details

This function replies on saveWidget(), but replaces the base64 encoded dependencies in the self-contained file with the human-readable equivalent.

Value

The input .table (invisibly)

See Also

Other functions in the inspections data pipeline ( insp_load_data() , insp_prep_data() , insp_create_table() , insp_archive_table() ) and the wrapper for the full workflow ( insp_table_pipeline() )


jesse-smith/covidReport documentation built on Aug. 3, 2024, 4:52 p.m.