Building tidy R packages for the OMOP common data model

Author

Edward Burn, Martí Català

Published

September 18, 2025

Introduction

This is an opinionated book on how we develop packages working in the Tidy OMOP CDM space.

Although some parts are also covered in our book for general R package development we recommend the following book: R Packages; Learn how to create a package, the fundamental unit of shareable, reusable, and reproducible R code.

The book is divided in four parts:

  • (I) Getting started: covers how to start with an empty package, and helps you think about which is the scope of your package or guide you on how to contribute to existing packages.

  • (II) Principles: this is the most important part of the book as it covers which packages to use…

  • (III) Documentation: covers the main …

  • (IV) Testing:

  • (V) GitHub: covers the main …

  • (VI) Maintaining a package: once a package is ready for a first release you will have to maintain it, this packages covers how to submit to cran for first time and maintain the package for the future.