-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRunAchilles.R
25 lines (19 loc) · 1.04 KB
/
RunAchilles.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# (Optional): Code to run ACHILLES on the uploaded CMD data
# Install Achilles ---------------------------------------
install.packages("remotes")
remotes::install_github("ohdsi/Achilles")
# Run Achilles ----------------------------------------------
library(DatabaseConnector)
library(Achilles)
connectionDetails <- createConnectionDetails(dbms = "postgresql",
server = paste(keyring::key_get("postgresServer"), keyring::key_get("postgresDatabase"), sep = "/"),
user = keyring::key_get("postgresUser"),
password = keyring::key_get("postgresPassword"),
port = keyring::key_get("postgresPort"))
cdmDatabaseSchema <- "synpuf"
resultsDatabaseSchema <- "ohdsi_results"
achilles(connectionDetails = connectionDetails,
cdmDatabaseSchema = cdmDatabaseSchema,
resultsDatabaseSchema = resultsDatabaseSchema,
sourceName = "SynPuf",
cdmVersion = "5.2.2")