Best practices for organising R projects in RStudio for reproducible statistical analysis

I have been using RStudio for statistical analysis and am interested in improving the way I organise my projects for reproducibility.

For projects involving data cleaning, statistical analysis, visualisation, and reporting, what workflow do experienced RStudio users recommend?

In particular, I would be interested in practical advice on:

  • Organising folders and project files
  • Managing scripts for different stages of an analysis
  • Using .Rproj projects effectively
  • Managing packages and package versions
  • Keeping raw and processed data separate
  • Creating reproducible reports with Quarto or R Markdown
  • Managing larger statistical projects with Git

What does a good RStudio project structure look like for a typical statistical analysis?