Skip to content

Commit

Permalink
Added interactive option to install cd
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Jul 15, 2024
1 parent 1b3d7f5 commit 461c6cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/Shiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ launchDiagnosticsExplorer <- function(sqliteDbPath = "MergedCohortDiagnosticsDat
}

if (!"OhdsiShinyModules" %in% as.data.frame(utils::installed.packages())$Package) {
remotes::install_github("OHDSI/OhdsiShinyModules")
if (!interactive() || isTRUE(utils::askYesNo("OhdsiShinyModules not installed, get from github?"))) {
remotes::install_github("OHDSI/OhdsiShinyModules")
} else {
stop("Cannot continue without OhdsiShinyModulesPackage from github")
}
}

appDir <-
Expand Down

0 comments on commit 461c6cd

Please sign in to comment.