rstudio / rstudio/packrat

Initialization in a subdirectory does not create .gitignore

Open
#149 5 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

Please run the following script in an empty directory:

#!/bin/sh

rm -rf test
git init test
cd test
mkdir dummy; cd dummy
Rscript --vanilla -e "options(repos=c(CRAN='http://cran.rstudio.com')); packrat::init()"
ls .gitignore

If the line mkdir dummy; cd dummy is not run, .gitignore is properly created.

What mechanism is used to detect if the project is under version control?

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 by running the provided shell script and tracing the packrat::init() entry point when called from the subdirectory. Determine how version-control state is detected and what prevents .gitignore from being created; done means initialization creates .gitignore in the reproduced project layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
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.