Encapsulates sidebar controls for ticker selection, date range, rolling-vol
window, and report download. Uses R6 for object-oriented Shiny module design.
Methods
Initialize a new ModInputs instance
Arguments
id
Character. Module namespace id.
Build sidebar UI
Arguments
...
Additional UI elements appended to the end of the sidebar
(e.g., ModDownload$ui())
Initialize server logic
Returns
Reactive list with elements: tickers, from, to, vol_window, fetch
The objects of this class are cloneable with this method.
Usage
ModInputs$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
if (FALSE) { # \dontrun{
# In app_ui():
inputs <- ModInputs$new(id = "inputs")
inputs$ui()
# In app_server():
inputs <- ModInputs$new(id = "inputs")
inputs_r <- inputs$server()
} # }