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
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
^data-raw$
^doc$
^Meta$
^app\.R$
^rsconnect$
80 changes: 43 additions & 37 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,44 @@ Authors@R:
Description: stanpumpR is open-source software for pharmacokinetic / pharmacodynamic simulation. It is intended to make pharmacokinetics accessible to facilitate perioperative patient care, teaching, and research. stanpumpR may be freely downloaded and used without restriction for non-commericial purposes.
License: MIT + file LICENSE
Imports:
config,
cpp11,
data.table,
dplyr,
DT,
egg,
glue,
ggplot2 (>= 3.4),
ggpubr,
grid,
httr,
jpeg,
jsonlite,
lubridate,
mailR,
officer,
openxlsx,
png,
purrr,
R.utils,
randomcoloR,
RColorBrewer,
RcppEigen,
reactlog,
rhandsontable,
rvg,
shiny,
shinyBS,
shinydashboard,
shinyjs,
splines,
stringi,
tidyr,
tryCatchLog,
waiter,
yaml
config,
cpp11,
data.table,
dplyr,
DT,
egg,
glue,
ggplot2 (>= 3.4),
ggpubr,
grid,
httr,
jpeg,
jsonlite,
lubridate,
mailR,
officer,
openxlsx,
png,
purrr,
R.utils,
randomcoloR,
RColorBrewer,
RcppEigen,
reactlog,
rhandsontable,
rvg,
shiny,
shinyBS,
shinydashboard,
shinyjs,
splines,
stringi,
tidyr,
tryCatchLog,
waiter,
yaml,
pkgload,
magrittr
Suggests:
devtools,
here,
Expand All @@ -58,8 +60,12 @@ Depends:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.2
Collate:
app.R
ui.R
server.R
global.R
drugAndEventDefaults.R
sendSlide.R
CE.R
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
export(getDrugDefaults)
export(getDrugDefaultsGlobal)
export(getDrugPK)
export(run_app)
export(simCpCe)
export(simulateDrugsWithCovariates)
3 changes: 3 additions & 0 deletions R/_disable_autoload.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Disabling shiny autoload

# See ?shiny::loadSupport for more information
4 changes: 4 additions & 0 deletions R/app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#' @export
run_app <- function(...) {
shinyApp(ui, server, ...)
}
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions ui.R → R/ui.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# UI for stanpumpR

# UI ------------------------------------------------------

ui <- function(request) {
dashboardPage(
dashboardHeader(
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Near-term future developments in stanpumpR will include
1. Install all package dependencies via `devtools::install_deps(dependencies = TRUE)`
1. Make a copy of the file `config.yml.sample` as a new file named `config.yml`. This `config.yml` is a configuration file that stanpumpR needs. You can change the settings inside it.
1. Run the app from the RStudio Console:
- `library(shiny)`
- `runApp()`
- `pkgload::load_all()`
- `run_app()`

#### Running tests
1. Install the devtools package via `install.packages("devtools")`.
Expand Down
7 changes: 7 additions & 0 deletions app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Launch the ShinyApp (Do not remove this comment)
# To deploy, run: rsconnect::deployApp()
# Or use the blue button on top of this file

pkgload::load_all(export_all = TRUE, helpers = FALSE, attach_testthat = FALSE)

run_app() # add parameters here (if any)
Loading