rstudio / rstudio/packrat

Support authentication for private CRAN-like repositories

Open
#702 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 request is inspired by https://github.com/rstudio/renv/issues/307. Renv has a nice way to set authentication headers https://rstudio.github.io/renv/articles/renv.html?q=renv.download.headers#authentication-with-custom-headers

options(renv.download.headers = function(url) {
  if (grepl("^https://my/repository", url))
    return(c(Authorization = Sys.getenv("AUTH_HEADER")))
})

Is there a way to do this in 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 by comparing packrat's repository and download behavior with the authentication-header approach described in the linked renv issue and documentation. Define how credentials for private CRAN-like repositories should be supplied and what successful authenticated dependency installation should demonstrate.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.