v0.10.1
Breaking changes
- Changed the
HTML
identifiers ofteal
modules - now each nested module receives its ownshiny
namespace. - Deprecated all functions related to connectors that have been moved to their own separate packages.
- Removed
raw_dataset
,raw_dataset_connector
,named_dataset
,named_dataset_file
,named_dataset_connector
,relational_dataset
,relational_dataset_file
,relational_dataset_connector
,key
,as_cdisc
,as_cdisc_relational
. - Removed
rcd_connection
andrcd_data
;scda_dataset_connectors
can be passed intocdisc_data
andteal_data
directly. - Replaced
rcd_dataset_connector
andrcd_cdisc_dataset_connector
withscda_dataset_connector
andscda_cdisc_dataset_connector
respectively. - Renamed
teal_show_js_log
option intoteal.show_js_log
to match options naming convention. - Removed
%is_in%
andstop_shiny
internal utility functions.
New features
Logging
- Added support for logging using the
logger
package. - Added a new function
register_logger
, which registers a logger in a given namespace. - Added trace and info levels log messages to the
teal
framework. - Added
pid
and shiny session token into footnote so app developers can identify logs for apps.
Other
-
Added print methods to the
DatasetConnector
,RelationalData
,RelationalDataconnector
andJoinKeys
classes and added input validation to the implementation of the print method that was already in theDataset
object. -
Added public facing constructor functions for
CDISCDataConnector
,RelationalDataConnector
, andDataConnection
classes. -
Modified
data_extract_spec
to allow both thefilter
andselect
parameters to beNULL
, which results in thedata_extract_ui
acting as if afilter_spec
with all variables as possible choices had been supplied as thefilter
argument and aselect_spec
with themultiple
parameter set toTRUE
had been supplied as theselect
argument. -
Added support of the full screen for a
module
when thefilters
argument is equalNULL
. -
Added support for
shiny::moduleServer
passed to theserver
parameter ofteal::module
. -
Added
teal.threshold_slider_vs_checkboxgroup
as an R option: if a categorical variable has more than this number of unique values, the filter panel uses a drop-down select input instead of a checkbox group. -
Extended the
FilteredData
API to allow managing filter states programmatically and not only from the UI of ateal
application. -
Hid the buttons to remove filters from all datasets and each dataset when there are no active filters.
-
Updated
init
to acceptRelationalData
,data.frame
,MultiAssayExperiment
,Dataset
,DatasetConnector
,list
or a function returning a named list as data input.
Bug fixes
choices_selected
now correctly removes duplicates from the array passed to itschoices
parameter.- Fixed call returned by
FilterState
in case of usingMultiAssayExperiment::subsetByColData
. Now single condition for variable containingNA
values is!is.na(var) & var == <condition>
. - Fixed data loading of
DatasetConnector
being dependent on otherDataset
orDatasetConnector
objects. - Fixed restoring a bookmarked filter state of
teal
application. - Refactored
module_nested_tabs
to fix the issue with the filter panel not reacting to an input change in a nested module. updateOptionalSelectInput
no longer sets input toNULL
whenlogical
value is passed toselected
.- Fixed setting
JoinKeys
when key name between twoDataset
object differs. - Fixed printing of the
JavaScript
console logs to theR
console whenteal.show_js_log = TRUE
.
Miscellaneous
- Soft-deprecate
mae_dataset()
in favor of more generaldataset()
constructor. - Added a vignette describing the modifications to
teal
applications users can apply usingR
options. - Added default values to the
label
argument ofselect_spec
andfilter_spec
. - Added validation to
FilteredDataset::get_data
to accept logical input only. - Changed references to outdated functions of
teal.devel
in the documentation. - Introduced a
Teal
prefix to all publicR6
classes to avoid name collisions with other packages. - Removed dependency on
utils.nest
and replaced its functionality inteal
with equivalents from thecheckmate
package and baseR
. - Replaced the old
shiny
server functions ofDataConnection
,RelationalDataConnector
,DatasetConnector
, andRelationalData
with theshiny::moduleServer
equivalents. - Running a
teal
application viaui_teal_with_splash
andsrv_teal_with_splash
is now no longer recommended because it doesn't support new features (e.g. logging, bookmarking). Useinit
instead. - Updated the R version requirement to >= 4.0.
- Updated the "filter panel collapse" icon to remove warnings when using
shiny
version >= 1.7. - Removed some of the non-exported, debugging modules.
- Updated the footer tag style to be less visible.