rstudio / rstudio/packrat

Bundle: specify which directories/files to include/ignore

Open
#376 0 comments 6 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'm doing a biomedical research project, and I have a directory structure that looks like this:

project
- cache
- manuscript
- plots
- presentations
- scripts
- tables

I want to make my research code more easy to share, so I used packrat. It works great.
However when I bundle my project, it includes all directories, including cache and intermediairy objects. Some of these files are actually generated by the script, so they don't have to be included; others (such as presentations) aren't relevant to share but handy to have in the same folder.

Would it be possible to specify which directories/files to ignore during the bundling?

I thought of creating a separate .Rproject in the scripts directory, but now I invoke all scripts using scripts/file.R so that would cripple those files.

For now I think I'll have to change the tar manually.

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 tracing the bundle operation for a project containing directories such as cache, manuscript, plots, presentations, scripts, and tables. Review how a .Rproject and paths such as scripts/file.R are handled; done means users can specify files or directories to include or ignore without breaking existing script invocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.