Starting your R projects
Daniel Dauber · 2025
This chapter highlights the significance of effectively organising R projects to improve workflow and collaboration. It takes readers through the process of creating an R Project file in RStudio, which gathers all related files, such as data, scripts, visualisations, and other outputs, within a single directory. This setup streamlines file management and ensures consistent relative file paths, aiding reproducibility and ease of sharing with collaborators. The chapter also covers the advantages of integrating version control systems such as GitHub, allowing users to track changes and back up their work. Practical steps are included for initiating a new project, encompassing the selection of suitable directory names and locations. Furthermore, the chapter provides strategies for structuring project folders, advocating a systematic method for organising raw data, processed data, scripts, plots, and reports. By implementing these practices, readers can maintain a tidy and efficient project environment, minimising errors and improving the overall quality of their data analysis efforts.