Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions R/shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' @param window_title,title,place_holder,minimum_lentgh_error text to be displayed on the page
#' @param minimum_lentgh don't update display if text is shorter than this parameter
#' @param max_feature_to_select up limit to the number of words that can be selected
#'
#' @param shinytheme default is 'superhero'.
#' @rdname interactive_text_explanations
#' @importFrom shiny fluidPage textAreaInput shinyApp sliderInput mainPanel titlePanel hr need validate h1 h2 h3 h4 h5 h6 numericInput selectInput sidebarPanel renderPlot plotOutput
#' @importFrom stringi stri_count_words stri_replace_all_fixed
Expand Down Expand Up @@ -49,7 +49,8 @@ interactive_text_explanations <- function(explainer, window_title = "Text model
place_holder = "Put here the text to explain",
minimum_lentgh = 3,
minimum_lentgh_error = "Text provided is too short to be explained (>= 3).",
max_feature_to_select = 20) {
max_feature_to_select = 20,
shinytheme = 'superhero') {
assert_that(is.list(explainer))
assert_that(is.string(window_title))
assert_that(is.string(title))
Expand All @@ -67,7 +68,7 @@ interactive_text_explanations <- function(explainer, window_title = "Text model
})

ui <- fluidPage(title = window_title,
theme = shinytheme("superhero"),
theme = shinytheme(shinytheme),
titlePanel(title = title),
hr(),
sidebarPanel(
Expand Down
12 changes: 9 additions & 3 deletions man/interactive_text_explanations.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.