R -e doesn't install packages into packrat project folder

Open
#519 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

No source file or test is named. Reproduce the R -e and interactive install.packages commands from a packrat project directory using R 3.5.1 and Packrat 0.5.0, then compare their package-library behavior. Done means packages install into the packrat project folder when invoked through R -e, including the reported Docker workflow.

Written by the indexing model from the issue text.

Description

R -e 'install.packages("rJava", repos="http://cran.rstudio.com", lib="/usr/local/lib/R/site-library")'
doesn't install packages into packrat project folder when I'm currently sitting in the packrat folder at the same time when I go Strictly into R and execute install.packages("rJava", repos="http://cran.rstudio.com", lib="/usr/local/lib/R/site-library") all works well. I install it via docker so I cannot manually go strictly to R and install it, I have to use "execute flag".
The same issue\bug works for all installed packages. I haven't tested with install via GitHub but anyway it has to work , Please check it out

Packrat version: 0.5.0
R version: 3.5.1

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

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.

More from rstudio/packrat

All issues in rstudio/packrat

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.