Server-side logic for plotly with download data button in modebar
downloadablePlotly(
input,
output,
session,
plot,
filename,
content,
title = "Download plot data"
)
No return value, called to generate server logic.
standard shiny
boilerplate.
Object of class 'plotly'
or a function or reactive that generates one.
A string of the filename, including extension, that the user's web browser should default to when downloading the file; or a function that returns such a string. (Reactive values and functions may be used from this function.)
A function that takes a single argument file
that is a
file path (string) of a nonexistent temp file, and writes the content to
that file path. (Reactive values and functions may be used from this
function.)
Text for plotly tooltip.
downloadablePlotlyUI