-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
1,757 additions
and
2,026 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
#' Insert an hidden browser button | ||
#' | ||
#' | ||
#' See \url{https://rtask.thinkr.fr/a-little-trick-for-debugging-shiny/} for more context. | ||
#' | ||
#' @return Used for side effects. | ||
#' Prints the code to the console. | ||
#' @export | ||
#' | ||
#' | ||
#' @importFrom cli cat_rule cat_line | ||
browser_button <- function(){ | ||
browser_button <- function() { | ||
cat_rule("To be copied in your UI") | ||
cat_line(darkgrey('actionButton("browser", "browser"),')) | ||
cat_line(darkgrey('tags$script("$(\'#browser\').hide();")')) | ||
cat_line() | ||
cat_rule("To be copied in your server") | ||
cat_line(darkgrey('observeEvent(input$browser,{')) | ||
cat_line(darkgrey(' browser()')) | ||
cat_line(darkgrey('})')) | ||
cat_line(darkgrey("observeEvent(input$browser,{")) | ||
cat_line(darkgrey(" browser()")) | ||
cat_line(darkgrey("})")) | ||
cat_line() | ||
cat_line("By default, this button will be hidden.") | ||
cat_line("To show it, open your web browser JavaScript console") | ||
cat_line("And run $('#browser').show();") | ||
} | ||
|
Oops, something went wrong.