rstudio / rstudio/packrat

Project crashes if "Packrat" is activated (Fatal error 4)

Open
#274 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
409
Forks
89
PR merge metrics
No merged PRs in 30d

Description

I created a new RStudio project. It seemed to work fine until I activated the option to use the packrat package and a folder "packrat" was created in the project's directory as expected. Unfortunately, now RStudio crashes every time I try to open the project and the message of a fatal error appears:

R error

Before my attempt to open the project, "package:utils" can be found on the search list by using search().

If I delete the "pacrat" folder, RStudio works as usual and I can open the project without any message of fatal error, but without packrat.

I'd like to know what are the causes and what must be done to avoid this fatal error without losing functionality of packrat?

I run RStudio under Windows 10:

# R version 3.2.3 (2015-12-10)
# Platform: x86_64-w64-mingw32/x64 (64-bit)
# Running under: Windows >= 8 x64 (build 9200)
# RStudio (0.99.491) 

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash by opening a new RStudio project with Packrat activated and its packrat folder present, using the reported R 3.2.3, RStudio 0.99.491, and Windows environment. Investigate the fatal error and confirm that opening the project with Packrat enabled no longer crashes while preserving Packrat functionality.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.