R/selectLanguage.R

Defines functions selectLanguage

Documented in selectLanguage

#' selectLanguage
#'
#' Choose a language.
#'
#' @param index integer: number of language to use 
#'
#' @return invisibly the selected language
#' @export
#'
#' @examples
#' selectLanguage(1)
selectLanguage <- function(index) {
  index <- as.integer(index)
  if (index %in% seq(mmstat$lang)) mmstat$lang$sel <- index 
  invisible(mmstat$lang$sel)
}
sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.