rstudio / rstudio/packrat

provide an ability to exclude files/directories from bundles

Open
#571 2 comments 2 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

Other than specifically src, lib, bundles, and vcs.history, it would be very useful to omit specific files or sub-directories from a bundle.

My first thought was to include extra_flags="--exclude data-raw", but since bundle forces the use of the internal tar (vice the tar executable), the extra_flags= argument is ignored.

Some options:

  • Allow the user to override tar=. There are incompatibilities between internal and command-line tar, so this might not be possible, but it would allow the use of extra_flags= if done correctly.

  • Add bundle(..., exclude=) where exclude is either a vector of files/dirs to remove completely or patterns to match against all files. This would require changing from files=basename(project) to an actual vector of files/dirs to include, appropriately filtered.

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 locating the bundle implementation, the internal tar path, and the code that builds files=basename(project). Compare the proposed tar override with an exclude argument for files, directories, or patterns; done means a bundle can omit the requested paths without changing the existing default contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.