packrat::init() without internet connection
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:
- "/home/user1234/test"
Warning: unable to access index for repository http://cran.rstudio.com/src/contrib
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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