rstudio / rstudio/packrat

packrat tests fail on Windows

Open
#240 0 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

This is because on Windows, if packrat attempts to install a package that is already attached, it must first detach that package and then re-attach it. This even occurs when installing packrat itself! However, it ends up attaching a dummy packrat package (which has no functions available) and then barfing when trying to call any packrat functions.

Likely, the solution here is to ensure that the dummy CRAN repository used for testing is also populated with the current built version of packrat.

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

Start with the packrat tests that install a package already attached on Windows and inspect how the dummy CRAN repository is built. Ensure the repository includes the current built packrat package, then rerun the Windows tests and verify packrat functions remain available after installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
operating-systems, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.