download: Function used for downloading. Creates a zip container...

Description Usage Arguments Value

View source: R/function.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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.


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.