ohdsi-studies / TicagrelorVsClopidogrel

OHDSI network study: Net Adverse Clinical Event between Ticagrelor and Clopidogrel in Patients with Acute Coronary Syndrome
1 stars 4 forks source link

insertEnvironmentSnapshotInPackage #10

Closed chandryou closed 5 years ago

chandryou commented 5 years ago

All the OHDSI source packages are available in the drat repository , that would be my best bet for installing packages offline. The biggest challenge is the dependencies of those packages that live in CRAN.

There’s a function called insertEnvironmentSnapshotInPackage in the OhdsiRTools package that creates a list of all packages (and version numbers) that need to be installed to run a study, and adds that list to the study package. An example can be found here.

chandryou commented 5 years ago

https://github.com/chandryou/TicagrelorVsClopidogrel/commit/8a150a34d0de8545600df4c2431b5f58b7426ed0