Use [renv](https://docs.posit.co/ide/user/ide/guide/environments/r/renv.html). Will become unnecessary if R projects are converted to python.
Use renv.
Will become unnecessary if R projects are converted to python.