Skip to content

Commit

Permalink
shiny app
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Apr 24, 2024
1 parent 60b6df6 commit 5ceadf4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
4 changes: 2 additions & 2 deletions R/grepInFiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ grepInFiles <- function(
if(maxCount == 1L) {
message(
"Returning only one result ",
"(reached supplied maximum number of results)."
"(reached the supplied maximum number of results)."
)
} else {
message(
sprintf("Returning only %d results ", maxCount),
"(reached supplied maximum number of results)."
"(reached the supplied maximum number of results)."
)
}
}
Expand Down
11 changes: 7 additions & 4 deletions inst/shinyApp/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ shinyUI(fluidPage(
),
br(),
smallInput(textInput(
"ext", "Extension:",
"ext", "File extension:",
value = "R"
)),
textInput(
"pattern", "Pattern:"
"pattern", "Pattern to search:"
),
smallInput(numericInput(
"depth", "Depth; blank for unlimited:",
value = 1, min = 0, step = 1
)),
actionButton(
"run", "Find",
"run",
tags$span(
"Find in files", class = "mylabel"
),
class = "btn-danger btn-block"
),
fluidRow(
Expand All @@ -52,7 +55,7 @@ shinyUI(fluidPage(
)
),
smallInput(numericInput(
"maxCount", "Maximal number of results; blank for unlimited:",
"maxCount", "Maximum number of results; blank for unlimited:",
value = 100, min = 1, step = 50
))
),
Expand Down
10 changes: 10 additions & 0 deletions inst/shinyApp/www/shinyFIF.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ a.list-group-item > h4 {
word-break: break-all;
}

.mylabel {
font-style: italic;
font-weight: bold;
}

#run {
border-width: 2px;
border-color: darkred;
}

#wd {
font-size: 12px;
font-weight: bold;
Expand Down

0 comments on commit 5ceadf4

Please sign in to comment.