mwModule()
now returncontroller
value, with possibility to use newclear()
method- add
header
,footer
andfluidRow
arguments tomwModuleUI()
manipulateWidget()
has a new parameter.updateBtnInit
. In case of update button.updateBtn
, you can decideto render graphics on init or not.- UI has now a button to save the current chart in an HTML file (thanks to Benoit Thieurmel).
manipulateWidget
gains a new parameter ".saveBtn" to show or hide this button. manipulateWidget()
has a new parameter ".runApp". If it is false, then the function returns an object of classMWController
that can be modified using command line instructions. This is useful to write tests for UIs created withmanipulateWidget()
.manipulateWidget
interfaces can now be included in shiny applications thanks to the two new functionsmwModule()
andmwModuleUI()
.- A new virtual input called
mwSharedValue
has been introduced. It can be used to avoid repeating the same computations when inputs and output use a common intermediary value. It can also be used whenmanipulateWidget()
is used in a shiny application to send data from the main application to the module. manipulateWidget()
now only updates the dependant inputs and outputs when user changes the value of an input. This can lead to important performance improvement in complicated applications.
- When a UI contained dynamic inputs, output was sometimes updated before inputs, which could lead to some errors.
- Opening the same application in two browsers (or tabs) resulted in strange results.
manipulateWidget()
has lost all arguments that were used to customize the UI. Parameters.controlPos
,.tabColumns
and.compareLayout
do not exist anymore.
manipulateWidget()
now creates a more compact and elegant user interface.- It is now possible to compare more than two charts.
manipulateWidget()
has a new argument.compareOpts
to control the number of charts and their position. - Argument
.compare
ofmanipulateWidget
can now be a character vector.
manipulateWidget()
now has a simpler API to show, hide and update inputs dynamically. Parameters.display
and.updateInputs
have been removed.- Functions
mwUI()
andmwControlsUI()
have been removed.
manipulateWidget()
gains a new parameter.return
to modify the object returned by the function.manipulateWidget()
has two new arguments.width
and.height
to control size of the UI in Rmarkdown documents with optionruntime: shiny
- New function
mwGroup
can be used to create groups of input.
- Select inputs have had a buggy behavior in some settings.
- Labels of inputs were incorrect in comparison mode.
- Variable
.id
is now available when evaluating the initial properties of the input controls. This can be useful in comparison mode, for instance to set different choices for a select input.
- Fixed a scope problem occuring when manipulateWidget was used inside a function and parameter
.updateInputs
was used. - Fixed a crash that could occur when parameters
.compare
and.updateInputs
were used together.
manipulateWidget()
can now be used in a R Markdown document with shiny runtime. Input controls are included in the final document so end users can play with their values directly. (contribution by JJ. Allaire)manipulateWidget()
has two new arguments.compare
and.compareLayout
to create a comparison interface. When.compare
is set, two charts are outputed with some common and some individual input controls (see vignette).- Now, input controls generated by
manipulateWidget()
can be dynamically updated thanks to the new argument ".updateInputs". - New functions
staticImage()
andstaticPlot()
to include in a combine widget a static image or a static plot created with base functions, ggplot2, etc. - In
combinedWidgets
objects, individual widgets are stored in a property calledwidgets
, so users can now access them and modify them.
- Function
combineWidgets()
has been entirely rewritten and now produces a htmlwidget that can be included as is in documents or shiny applications. The general behavior is the same, but some parameters have changed.
manipulateWidget()
can now update an already rendered widget instead of overwriting it each time the user changes an input. This leads to better performance and user experience. Look at the documentation of manipulateWidget for further information.
manipulateWidget()
now preserves the order of the initial value of select inputs.manipulateWidget()
now automatically finds the correct render and output functions. This solves in particular sizing problems.
- add a file LICENSE and copyright to sources files
- New functions
mwUI()
andmwControlsUI()
have been added to let the user easily reuse the user interface generated by the package but with different server logic. - User can now easily create group of inputs in function manipulate widget. In the UI, these inputs are grouped in a panel that can be collapsed/opened by clicking on its name.
- Many useless but worrying warning messages have been removed.