Skip to main content
Loading Events

« All Events

  • This event has passed.

Modular Design and Automated Testing in R

November 14, 2022 @ 9:30 am - 12:30 pm

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. We will also discuss 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.The course will primarily consist of a hands-on exercise to restructure a single long analysis file into functions and automated tests. This event is sponsored by H.W. Odum Institute.

Details

Date:
November 14, 2022
Time:
9:30 am - 12:30 pm
Event Category:
Website:
https://apps2.research.unc.edu/events/index.cfm?event=events.go&key=B321