-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #172 from pharmaverse/enhancement/run-app-via-pack…
…age-installation2 Enhancement/run app via package installation
- Loading branch information
Showing
17 changed files
with
149 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: aNCA | ||
Title: (Pre-)Clinical NCA in a Dynamic Shiny App | ||
Version: 0.0.0.9000 | ||
Version: 0.0.0.9001 | ||
Authors@R: c( | ||
person("Ercan", "Suekuer", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0009-0001-1626-1526")), | ||
|
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,47 @@ | ||
#' Run the Shiny app | ||
#' | ||
#' List of functions imported for the shiny application. | ||
#' When adding new imports, please keep the alphabetical order, at lest for packages. | ||
#' | ||
#' @import shiny | ||
#' @import bslib | ||
#' @importFrom dplyr mutate filter select group_by summarise pull arrange ungroup | ||
#' @importFrom dplyr rename_with across case_when left_join rename | ||
#' @importFrom DT DTOutput renderDataTable datatable formatStyle styleEqual | ||
#' @importFrom ggplot2 ggplot geom_errorbar geom_point geom_line labs aes facet_wrap | ||
#' @importFrom htmlwidgets JS | ||
#' @importFrom PKNCA PKNCAconc PKNCAdose PKNCAdata pk.nca PKNCA.options pknca_units_table | ||
#' @importFrom plotly plotlyOutput renderPlotly plotly_build event_data | ||
#' @importFrom reactable reactable reactableOutput renderReactable colDef reactableTheme | ||
#' @importFrom reactable getReactableState | ||
#' @importFrom reactable.extras text_extra dropdown_extra | ||
#' @importFrom rio export_list | ||
#' @importFrom rmarkdown render | ||
#' @importFrom shinyBS bsModal | ||
#' @importFrom shinycssloaders withSpinner | ||
#' @importFrom shinyFiles shinyDirChoose | ||
#' @importFrom shinyjqui orderInput updateOrderInput | ||
#' @importFrom shinyWidgets dropdown pickerInput switchInput updatePickerInput | ||
#' @importFrom stringi stri_rand_strings | ||
#' @importFrom tools file_ext | ||
#' @importFrom utils read.csv write.csv | ||
#' @importFrom zip zipr | ||
#' @param ... Arguments passed to `shiny::runApp()` | ||
#' @export | ||
run_app <- function() { | ||
shiny::runApp(system.file("shiny", package = "aNCA")) | ||
run_app <- function(...) { | ||
require(aNCA) | ||
|
||
require(bslib) | ||
require(checkmate) | ||
require(dplyr) | ||
require(DT) | ||
require(forcats) | ||
require(ggh4x) | ||
require(ggplot2) | ||
require(glue) | ||
require(haven) | ||
require(htmlwidgets) | ||
require(logger) | ||
require(magrittr) | ||
require(nestcolor) | ||
require(PKNCA) | ||
require(plotly) | ||
require(purrr) | ||
require(reactable) | ||
require(reactable.extras) | ||
require(rio) | ||
require(rmarkdown) | ||
require(scales) | ||
require(shiny) | ||
require(shinyBS) | ||
require(shinycssloaders) | ||
require(shinyFiles) | ||
require(shinyjqui) | ||
require(shinyjs) | ||
require(shinyWidgets) | ||
require(stats) | ||
require(stringi) | ||
require(stringr) | ||
require(tern) | ||
require(tidyr) | ||
require(tools) | ||
require(utils) | ||
require(units) | ||
require(rlang) | ||
require(yaml) | ||
require(zip) | ||
shiny::runApp(system.file("shiny", package = "aNCA"), ...) | ||
} |
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
Oops, something went wrong.