R/Countryselection.R

Defines functions select_countryInput

Documented in select_countryInput

#' Selection of provinces for users in app
#'
#' @description Let users to choose which country they want to select in shiny app
#'
#' @param data A dataset containing `Country` in columns.
#'
#'
#' @export
#'
select_countryInput <- function(data) {
  selectizeInput("countryInput", "Country",
                 choices = unique(data$country),
                 selected="US", multiple =FALSE)


}
etc5523-2020/r-package-assessment-KarinaZou documentation built on Jan. 1, 2021, 1:10 a.m.