download {wilson}R Documentation

Function used for downloading. Creates a zip container containing plot in png, pdf and user input in json format. Use inside downloadHandler content function.

Description

Function used for downloading. Creates a zip container containing plot in png, pdf and user input in json format. Use inside downloadHandler content function.

Usage

download(
  file,
  filename,
  plot,
  width,
  height,
  ppi = 72,
  save_plot = TRUE,
  ui = NULL
)

Arguments

file

See downloadHandler content parameter.

filename

See downloadHandler.

plot

Plot to download.

width

in centimeter.

height

in centimeter.

ppi

pixel per inch. Defaults to 72.

save_plot

Logical if plot object should be saved as .RData.

ui

List of user inputs. Will be converted to JavaScript Object Notation. See toJSON

Value

Path to zip archive invisibly. See zipr.


[Package wilson version 2.4.2 Index]