Guides to better science: reproducible code.

Published online
23 Jun 2022
Published by
British Ecological Society
Content type

Contact email(s)

Publication language


Although most science researchers now write code to perform their analyses, it is often not very reproducible. This guide covers all the basic tools and information one will need to start making one's code more reproducible. It focuses on R and Python, but many of the tips apply to any programming language. The guide (1) introduces some ways to organise computer files and to document workflows; (2) discusses how to make one's code more reproducible and readable; (3) explains how to write reproducible reports; (4) breaks down the basics of version control; and (5) describes how to archive one's code. Also included is a selection of helpful tips from other scientists.

Key words