R/uifunctions.R

Defines functions sinput

Documented in sinput

#' User controlled drop down menu 
#'
#'
#' Calls selectInput() function from shiny r package where necessary which in turn creates a drop down menu from which values can be selected. 
#' The function is relative to the shiny app enclosed in the package, therefore it is not advisable for the package user to interact with it.
#' 
#' @param id The input id that can be used to contain the value selected.
#' @param label The label displayed over the menu. Use NULL for no label.
#' @param choice The list of values to be selected from.
#' 
#'
#'  
#'@return Returns a drop down menu compatible with shiny r package.
#'
#'@export
sinput <- function(id,label,choice){
  
  selectInput(id,label, choice)
  
  
}
etc5523-2020/r-package-assessment-aarathybabu97 documentation built on Jan. 1, 2021, 1:11 a.m.