RStudio occasionally replaces symlinked directories in lib-R with empty directory
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
This appears to be a pretty severe bug for users of packrat with RStudio on Windows. Repro:
- Create a new project,
- Initialize with
packrat::init(), - Restart the R session.
Periodically, some junction points in the lib-R directory will be replaced with empty directories. It seems like this only happens to a few of the directories, and which directory is affected seems random. You may need to restart the R session a couple times (CTRL + SHIFT + F10) to reproduce. I repro'ed this with the latest daily build of RStudio on Windows.
I can't reproduce using a vanilla R session from the console, even with rapidly toggling packrat::on() and packrat::off(), so it leads me to believe that the IDE is doing something here.
@jjallaire, any thoughts on what could be causing this?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with packrat::init() in a new project on RStudio for Windows, then restart the R session with CTRL + SHIFT + F10 and inspect junction points under lib-R. Compare this with toggling packrat::on() and packrat::off() in a vanilla R console. Done means the relevant lib-R junction points are no longer randomly replaced with empty directories.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100