Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If an RStudio project are open, a non-project RStudio R session will use the other project's .Rprofile #14695

Open
4 tasks done
CorradoLanera opened this issue May 13, 2024 · 0 comments

Comments

@CorradoLanera
Copy link

System details

RStudio Edition : Desktop
RStudio Version : RStudio Desktop Pro 2024.04.0 Build 735.pro3 "Chocolate Cosmos" Release (c994988f, 2024-04-24)
OS Version      :  Windows 11 Edu
R Version       :  4.4.0

Steps to reproduce the problem

  1. create a ~/.Rprofile
  2. create a RStudio project "A" with its local .Rprofile
  3. Open project A (it will use its .Rprofile)
  4. with project A still opened, open a new RStudio session out of any project. The bug is that it will use the .Rprofile of project A and not the user ~/.Rprofile.

Describe the problem in detail

I have set up RStudio to not enter any project automatically at startup.
So, I have also created an out-of-project ~/.Rprofile to work outside of any projects.

So, if I open RStudio, the ~/.Rprofile file will be loaded, as expected.
Next, if I open an RStudio project on a different session/window, the new project will open correctly, loading its own path/to/proj/.Rprofile file at startup. Now I have two instances of RStudio: out-of-project and proj.

The issue is that if I restart the R session on the out-of-project RStudio instance at that moment, it loads the path/to/proj/.Rprofile file instead of the ~/.Rprofile one.

Attached:

Contacted Posit support (Ticket #104756), they asked me to open an issue, and to refer this to #13922

Describe the behavior you expected

The out-of-any-project session should always use ~/.Rprofile

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting an RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
@CorradoLanera CorradoLanera added bug new New incoming issues, ready for initial review. labels May 13, 2024
@kevinushey kevinushey added this to the Cranberry Hibiscus milestone May 13, 2024
@kevinushey kevinushey removed the new New incoming issues, ready for initial review. label May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants