Skip to content

Commit

Permalink
Updating Cyclops requirement (to avoid error due to new dbplyr)
Browse files Browse the repository at this point in the history
  • Loading branch information
Admin_mschuemi authored and Admin_mschuemi committed Nov 1, 2023
1 parent 94ac999 commit 7132c19
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ URL: https://github.com/OHDSI/SelfControlledCaseSeries
BugReports: https://github.com/OHDSI/SelfControlledCaseSeries/issues
Depends:
R (>= 4.0.0),
Cyclops (>= 3.2.0),
Cyclops (>= 3.4.0),
DatabaseConnector (>= 6.0.0),
Andromeda
Imports:
Expand Down
25 changes: 24 additions & 1 deletion extras/MultiAnalysesVignetteDataFetch.R
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,32 @@ databases <- tibble(
DatabaseConnector::insertTable(
connection = connection,
databaseSchema = "main",
tableName = "databases",
tableName = "database_meta_data",
data = databases,
dropTableIfExists = TRUE,
createTable = TRUE
)
DatabaseConnector::disconnect(connection)

# Launch Shiny app:
databaseFile <- file.path(outputFolder, "export", "SccsResults.sqlite")
connectionDetails <- DatabaseConnector::createConnectionDetails(
dbms = "sqlite",
server = databaseFile
)
resultDatabaseDetails <- list(
dbms = connectionDetails$dbms,
tablePrefix = 'sccs_',
cohortTablePrefix = 'cg_',
databaseTablePrefix = '',
schema = "main",
databaseTable = 'database_meta_data'
)
sccsModule <- ShinyAppBuilder::createDefaultSccsConfig()
aboutModule <- ShinyAppBuilder::createDefaultAboutConfig()
shinyAppConfig <- ShinyAppBuilder::initializeModuleConfig() %>%
ShinyAppBuilder::addModuleConfig(aboutModule) %>%
ShinyAppBuilder::addModuleConfig(sccsModule)
connectionHandler <- ResultModelManager::ConnectionHandler$new(connectionDetails)
ShinyAppBuilder::viewShiny(shinyAppConfig, connectionHandler)
connectionHandler$closeConnection()
Binary file modified extras/SelfControlledCaseSeries.pdf
Binary file not shown.

0 comments on commit 7132c19

Please sign in to comment.