rstudio / rstudio/packrat

packrat::init() without internet connection

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

Hi,

Our R server is not connected to the internet.

We have installed Packrat using: R CMD INSTALL packrat_0.4.4.tar.gz

When we initialize Packrat in Rstudio it tries to fetch online resources and fails after that.

Is it possible to configure Packrat to work in offline mode and initialize without checking for online resources?


packrat::init()
Initializing packrat project in directory:

Adding these packages to packrat:
_
packrat 0.4.4

Warning: unable to access index for repository http://cran.rstudio.com/src/contrib
Fetching sources for packrat (0.4.4) ... Failed
Error in snapshotSources(project, activeRepos(project), allRecordsFlat) :
Errors occurred when fetching source files:
Error in getSourceForPkgRecord(pkgRecord, sourceDir, availablePkgs, repos) :
Could not find sources for packrat (0.4.4).


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 at the packrat::init() entry point and reproduce the reported failure in an R environment without internet access, using the command output in this issue as the baseline. Determine how initialization currently fetches packrat sources and define completion as successful initialization without contacting online repositories when offline operation is requested.

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.