Month Flat Week Day

Odum Institute: Modular design and automated testing in R

Tue. 18 Apr, 2023 9:30 am - 12:30 pm

Modular design and automated testing in R

This 2-part, 6-hour course will be split over 2 days and offered via Zoom. Attendance is required as the course will not be recorded.

Research is relying on increasingly complex code. However, most academics have not received formal training in software development. This course will introduce participants to some of the best practices of professional software development. Participants will learn to structure their R code into reusable functions and store those functions as separate scripts and/or packages. Participants will learn to write automated tests for their functions, to help confirm that results are as expected and to ensure that future changes to code do not cause unexpected changes to results.

In this course, participants will also learn how to create reproducible “environments” that record package versions in use to help avoid package version incompatibilities and ensure that results can be replicated even months or years after the original analysis.

Many R users code using the R markdown or Quarto systems that allow integrating text with code. In this course, participants will learn how these useful tools can affect modular design, and how to use them together. No previous R Markdown or Quarto experience is required. Modular design is best paired with a version control system and integrates with Git and Github.

Register

Get NC TraCS events and news delivered to your inbox! Subscribe to our weekly email blast

Need help advertising your event? Contact Michelle Maclay at michelle_maclay@med.unc.edu

NC TraCS Institute logo vertical

In partnership with:

Contact Us


Brinkhous-Bullitt, 2nd floor
160 N. Medical Drive
Chapel Hill, NC 27599

919.966.6022
This email address is being protected from spambots. You need JavaScript enabled to view it.

Social


Cite Us


CitE and SUBMit CTSA Grant number - UM1TR004406

© 2008-2024 The North Carolina Translational and Clinical Sciences (NC TraCS) Institute at The University of North Carolina at Chapel Hill
The content of this website is solely the responsibility of the University of North Carolina at Chapel Hill and does not necessarily represent the official views of the NIH   accessibility | contact