rstudio / rstudio/packrat

Infer source package paths using source references

Open
#100 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Today Packrat works with source packages, but only if the source packages' locations are manually specified in the source.packages parameter.

There is a possible way to probe for a package's source location in some instances:

  1. Load the package
  2. Iterate over the package namespace environment and look for functions
  3. Check each function for source references
  4. If the source reference points to an existing file on disk, walk up the directory structure starting at that file looking for a package root directory (i.e. contains DESCRIPTION, etc.)

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

No files or tests are identified. Start by locating Packrat's source-package handling and the source.packages parameter, then assess the proposed namespace and source-reference probing flow. Done means source package paths can be inferred from existing source references when a package root is found, while manual paths remain supported.

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.