Shared
dynamicSelect.R
- dynamicSelect.ui(id)
This function displays a select list wich uses ID select
- Parameters:
id (character) – namespace of the module
- dynamicSelect.server(input, output, session, label, choices, multiple = FALSE, selected.ind = 1)
This function creates a select list that can be used to choose a single or multiple items from a list of values
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
label (character) – display label for the menu
choices (list) – list of values to select from
multiple (logical) – informs whether the selection of multiple items is allowed (default=FALSE)
selected.ind (numeric) – initially selected value’s index (default=1)
dynamicSelectpicker.R
- dynamicSelectpicker.ui(id)
This function displays a select list wich uses ID select
- Parameters:
id (character) – namespace of the module
- dynamicSelectpicker.server(input, output, session, label.title, choices, multiple = TRUE, label.window = NULL, selected = "All", idon = NULL, livesearch = FALSE, maxOptions = NULL, abox = TRUE)
This function creates a select list (with additional options) that can be used to choose a single or multiple items from a list of values
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
label.title (character) – display label for the menu
choices (list) – list of values to select from
multiple (logical) – informs whether the selection of multiple items is allowed (default=TRUE)
label.window (character) – option title, the default title for the selectpicker (default=NULL)
selected (list) – initially selected items (default=All)
idon (list) – values to keep in the selected list (filtered by user) (default=NULL)
livesearch (logical) – when set to true, adds a search box to the top of the selectpicker dropdown (default=FALSE)
maxOptions (numeric) – the number of selected options cannot exceed the given value (default=NULL)
abox (logical) – option actionBox, when set to true, adds two buttons to the top of the dropdown menu (Select All & Deselect All) (default=TRUE)
missingValChange.R
- missingValChange.ui(id, label='Define Missing Values', width=NULL)
This function displays a button that calls a modal window in order to specify how missing values are defined
- Parameters:
id (character) – namespace of the module
label (character) – label of the button (default=”Define Missing Values”)
width (numeric) – width of the button (default=NULL)
- missingValChange.server(input, output, session, initialNA)
This function allows to interact with the modal window
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
initialNA (object) – contains NA defaults for each
XactiveChange.R
- XactiveChange.ui(id, label='Change Outputs Type', width=NULL)
This function displays a button that calls a modal window in order to change input activation
- Parameters:
id (character) – namespace of the module
label (character) – label of the button (default=”Change Outputs Type”)
width (numeric) – width of the button (default=NULL)
- XactiveChange.server(input, output, session, Xinfos)
This function allows to interact with the modal window
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
Xinfos (object) – input variable information
XinfosChange.R
- get.Xinfos(line, decimal, header)
Returns an object containing the input variable information of a given line
- Parameters:
line (character) – line of imported file
decimal (character) – decimal separator
header (logical) – informs whether there is a header containing the variable name
- check.Xinfos.file(nX, lines, Xinfos.temp, separator, decimal, data, edit.disable, header)
Checks the validity of the imported file
- Parameters:
nX (numeric) – number of inputs
lines (vector) – lines read from file
Xinfos.temp (object) – temporary Xinfos, input variable information
separator (character) – delimiter used to separate values in the file
decimal (character) – decimal separator
data (object) – contains data points
edit.disable (logical) – informs whether the edition should be disabled
header (logical) – informs whether there is a header containing the variable name
- get.Xinfos.from.file(nX, lines.split, Xinfos.temp, header, separator, decimal, data, edit.disable)
Returns an object containing the input variable information of every variable from a file (returns error message if wrong file format)
- Parameters:
nX (numeric) – number of inputs
lines.split (vector) – lines read from file
Xinfos.temp (object) – temporary Xinfos, input variable information
header (logical) – informs whether there is a header containing the variable name
separator (character) – delimiter used to separate values in the file
decimal (character) – decimal separator
data (object) – contains data points
edit.disable (logical) – informs whether the edition should be disabled
- get.Xinfos.from.input(input, initialXinfos, Xinfos.temp, edit.disable = FALSE)
Returns an object containing the input variable information from what the user specified in the UI
- Parameters:
input (list-like-object) – stores the widgets’ values.
initialXinfos (object) – initial input variable information
Xinfos.temp (object) – temporary Xinfos, input variable information
edit.disable (logical) – informs whether the edition should be disabled (default=FALSE)
- update.type(input, Xinfos, data, error.msg, session)
Updates Xinfos with the types specified in the UI by the user (returns error message if a type change is not possible)
- Parameters:
input (list-like-object) – stores the widgets’ values.
Xinfos (object) – input variable information
data (object) – contains data points
error.msg (object) – error messages
session (object) – environment that can be used to access information and functionality relating to the session.
- Xinfos.check(Xinfos.temp, data, edit.disable)
Checks the validity of the object Xinfos
- Parameters:
Xinfos.temp (object) – temporary Xinfos, input variable information
data (object) – contains data points
edit.disable (logical) – informs whether the edition should be disabled
- get.initialXinfos(ind)
Returns a default Xinfos object (a numeric variable, bounded by 0 and 1)
- Parameters:
ind (numeric) – index of the variable
- get.bounds(Xinfos)
Returns the bounds contained in Xinfos, for numerical variables
- Parameters:
Xinfos (object) – input variable information
- get.levels(Xinfos, var.cat.list)
Returns the levels contained in Xinfos, for categorical variables
- Parameters:
Xinfos (object) – input variable information
var.cat.list (list) – name list of the catgorical variables
- get.nb.num(Xinfos)
Returns the number of numerical variables in Xinfos
- Parameters:
Xinfos (object) – input variable information
- get.Xinfos.df(Xinfos, ncolumns)
Returns Xinfos as a data.frame
- Parameters:
Xinfos (object) – input variable information
ncolumns (numeric) – expected number of columns
- get.Xinfos.download(Xinfos, separator, decimal)
Shapes an Xinfos data.frame for file export
- Parameters:
Xinfos (object) – input variable information
separator (character) – delimiter used to separate values in the file
decimal (character) – decimal separator
- Xinfos.row.ui(i, ns, input, Xinfos, initialXinfos, data, error.msg, edit.disable)
Displays Xinfos for one variable in the UI, allows the user to edit the information
- Parameters:
i (numeric) – index of the variable
ns (character) – namespaced ID
input (list-like-object) – stores the widgets’ values.
Xinfos (object) – input variable information
initialXinfos (object) – initial input variable information
data (object) – contains data points
error.msg (object) – error messages
edit.disable (logical) – informs whether the edition should be disabled
- XinfosChange.ui(id, label='Change Inputs', width=NULL)
This function displays a button that calls a modal window in order to import a file with the input variable information or to manually change the information
- Parameters:
id (character) – namespace of the module
label (character) – label of the button (default=”Change Inputs”)
width (numeric) – width of the button (default=NULL)
- XinfosChange.ui.preview(id, simple=FALSE)
This function displays the input variable information as a table, alongside with an export button if the simple parameter is set to FALSE
- Parameters:
id (character) – namespace of the module
simple (logical) – when TRUE, displays a table, when FALSE, displays a button to download the data(default=FALSE)
- XinfosChange.server(input, output, session, initialXinfos, data = NULL, edit.disable = FALSE, nvalues = NULL, verbose = FALSE)
This function allows to interact with the modal windows
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
initialXinfos (object) – initial input variable information
data (object) – contains data points (default=NULL)
edit.disable (logical) – informs whether the edition should be disabled (default=FALSE)
nvalues (numeric) – number of values for the variable (default=NULL)
verbose (logical) – option to provide additional details during the process (default=FALSE)
XYnamesChange.R
- XYnamesChange.ui(id, label='Check Variables Names', width=NULL)
This function displays a button that calls a modal window in order to change input and output variable names
- Parameters:
id (character) – namespace of the module
label (character) – label of the button (default=”Check Variables Names”)
width (numeric) – width of the button (default=NULL)
- XYnamesChange.server(input, output, session, XYnames.init, max.char = 40)
This function allows to interact with the modal window and processes the names for visualisations and menus if needed.
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
XYnames.init (object) – initial names for input and output variables
max.char (numeric) – maximum length allowed for a name (default=40)
YinfosChange.R
- get.Yinfos.from.file(datapath, ynames, Yinfos, separator)
This funtion reads a file and updates Yinfos with its content
- Parameters:
datapath (character) – file to read
ynames (list) – initial output variable names
Yinfos (object) – initial output variable information
separator (character) – delimiter used to separate values in the file
- YinfosChange.ui(id, label='Change Outputs Type', width=NULL)
This function displays a button that calls a modal window in order to change output variable information
- Parameters:
id (character) – namespace of the module
label (character) – label of the button (default=”Change Outputs Type”)
width (numeric) – width of the button (default=NULL)
- YinfosChange.server(input, output, session, initialYinfos, hideFunctional)
This function allows to interact with the modal window
- Parameters:
input (list-like-object) – stores the widgets’ values.
output (list-like-object) – stores the instructions to build R objects in the app.
session (object) – environment that can be used to access information and functionality relating to the session.
initialYinfos (object) – initial output variable information
hideFunctional (logical) – if TRUE, hide the ability to attribute functional group to outputs