Skip to content

Commit

Permalink
Updated database handeling and renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamLaang committed Oct 23, 2020
1 parent f35704c commit f85c647
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: MODifieRWeb
Title: Web MODifieR
Package: ClusteRsy
Title: ClusteRsy
Version: 0.0.0.9000
Authors@R: person('AUTHOR_FIRST', 'AUTHOR_LAST', email = '[email protected]', role = c('cre', 'aut'))
Description: Shiny interface to MODifieR.
Expand Down
2 changes: 1 addition & 1 deletion R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
app_server <- function( input, output, session) {
app_servr <- reactiveValues()
# Loading screen
con <- MODifieRDB::connect_to_db("./data_example/modeling_new_db.db")
con <- MODifieRDB::connect_to_db(db)
app_servr$loaded <- con

# Listen to the beautiful button
Expand Down
9 changes: 6 additions & 3 deletions R/run_app.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
#' @export
#' @importFrom shiny shinyApp
#' @importFrom golem with_golem_options
run_app <- function(
...
) {
run_app <- function(db = NULL,...){
if (is.null(db)){
db <- system.file("database", "igem.db", package = "ClusteRsy")
}
db <<- db

with_golem_options(
app = shinyApp(
ui = app_ui,
Expand Down

0 comments on commit f85c647

Please sign in to comment.