-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Nikolas Burkoff
authored
May 23, 2022
1 parent
e4a7141
commit dadec89
Showing
21 changed files
with
381 additions
and
31 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#' Create a `teal` module for previewing a report | ||
#' | ||
#' This function wraps [teal.reporter::reporter_previewer_ui()] and | ||
#' [teal.reporter::reporter_previewer_srv()] into a `teal_module` to be | ||
#' used in `teal` applications. | ||
#' | ||
#' If you are creating a `teal` application using [teal::init()] then this | ||
#' module will be added to your application automatically if any of your `teal modules` | ||
#' support report generation | ||
#' | ||
#' @inheritParams module | ||
#' @return `teal_module` containing the `teal.reporter` previewer functionality | ||
#' @export | ||
reporter_previewer_module <- function(label = "Report previewer") { | ||
checkmate::assert_string(label) | ||
srv <- function(id, datasets, reporter, ...) { | ||
teal.reporter::reporter_previewer_srv(id, reporter, ...) | ||
} | ||
|
||
ui <- function(id, datasets, ...) { | ||
teal.reporter::reporter_previewer_ui(id, ...) | ||
} | ||
|
||
module( | ||
label = label, | ||
server = srv, ui = ui, | ||
server_args = list(), ui_args = list(), filters = NULL | ||
) | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.