save-methods: Save a gadget's main output

saveR Documentation

Save a gadget's main output

Description

Use this method to save the d3heatmap from the d3heatmapGadget without intermediary code.

Usage

save(gadget, ...)

## S4 method for signature 'd3heatmapGadget'
save(gadget, file = NULL, ...)

Arguments

gadget

The gadget to save to file

...

arguments to pass to htmlwidgets::saveWidget

file

the name of the file, without extension

Examples

## Not run: 

hm <- d3heatmapGadget(mtcars)
save(hm, file = "myHeatmap")


## End(Not run)


rstudio/d3heatmap documentation built on Nov. 18, 2024, 9:20 a.m.