Technical Requirements
1 OHDSI Environment Setup
To run this study you must setup the HADES environment.
2 Supported Databases
You also require your site data to be mapped to the OMOP CDM and administered on one of the following supported database platforms:
- Microsoft SQL Server
- PostgreSQL
- Google BigQuery
- Amazon Redshift
- Snowflake
2.1 Downloading JDBC Driver
Prior to starting the study ensure that you have downloaded the appropriate .jar
file for your dbms to use with DatabaseConnector
. Please follow these steps:
- Create a
DATABASECONNECTOR_JAR_FOLDER
locally - Run command
usethis::edit_r_environ()
to open your.Renviron
which stores your environment variables - Add an environment variable following example. This will serve as default path to driver for all
DatabaseConnector
commands
DATABASECONNECTOR_JAR_FOLDER="C:/Users/.../Documents/R/jar_folder"
- Save
.Renviron
and restart R session. - Download Jdbc Driver using
DatabaseConnector
, example below
::downloadJdbcDrivers(dbms = "postgresql") DatabaseConnector
3 Data Quality Control
Prior to running this study, it is expected that the data node has performed some sort of QC of their OMOP ETL process. Open-source tools are available to assist in conducting QC of the ETL:
4 Study Environment
4.1 R Version
This study requires a minimal R version of 4.1.3 (2022-03-10). Link to windows installer.
4.2 R Environment
This study uses renv
to reproduce the R environment to execute this study. The study code maintains an renv.lock
file in the main branch of the repository. To activate the renv
use the following code:
::restore() renv
4.2.1 Conflicts
Some organizational IT setups pose conflicts with renv
. One example is if your organization uses the Broadsea Docker. If you have a conflict with renv
please complete the following steps:
- Run
renv::deactivate()
in the active ehden .RProj - Review table below with installed versions of R packages
- If a dependency is missing, install it manually. The code below provides examples of scenarios on how to install an R package:
# Installing an R package from CRAN ------------
## Installing latest version of R package on CRAN
install.packages("ggplot2")
## Installing archived version of R package on CRAN
<- "http://cran.r-project.org/src/contrib/Archive/ggplot2/ggplot2_0.9.1.tar.gz"
packageurl install.packages(packageurl, repos=NULL, type="source")
# Installing an R package from github -----------------
# Installing current version of R package from github
install.packages("remotes") # note you may also work devtools
::install_github("ohdsi/FeatureExtraction")
remotes
# Installing develop version of R package from github
::install_github("ohdsi/Ulysses", ref = "develop")
remotes
# Installing old version of R package from github
::install_github("ohdsi/CohortGenerator", ref = "v0.7.0") remotes
It is highly recommended you stick with the renv
snapshot as this is the easiest way to reproduce the study execution environment.
4.3 R Packages
The following is an exhaustive list of R packages active during the development of the EHDEN HMB study: