Use RStudio Projects to Lock Your Working Directory and Stop Path Drift
RStudio Projects lock the working directory to the project root, making relative paths stable across machines and reproducible for R Markdown. Learn how .Rproj and .Rproj.user differ and how to verify the setup.