downloadHandler content function.Function used for downloading.
Creates a zip container containing plot in png, pdf and user input in json format.
Use inside downloadHandler content function.
download(
file,
filename,
plot,
width,
height,
ppi = 72,
save_plot = TRUE,
ui = NULL
)See downloadHandler content parameter.
See downloadHandler.
Plot to download.
in centimeter.
in centimeter.
pixel per inch. Defaults to 72.
Logical if plot object should be saved as .RData.
List of user inputs. Will be converted to JavaScript Object Notation. See toJSON
Path to zip archive invisibly. See zipr.