Question about local v public packages
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Reproduce the reported workflow with packrat::init(), install_local() for pkgA and pkgB, and snapshot() using the stated local repository. Start by tracing how snapshot selects package sources when a local package shares a name with a CRAN package. Done when the modified local pkgB is recorded rather than the current CRAN version.
Written by the indexing model from the issue text.
Description
Let's say I begin a project using the packrat command as so:
packrat::init("C:/project",option=list(local.repos='C:/packages/r'))
Then lets say I have two local packages to install along with the packages from a CRAN
install_local('pkgA',repos='C:/packages/r')
install_local('pkgB',repos='C:/packages/r')
pkgA is a package that I have created myself and stored locally.
pkgB is a package that I have modified for my use from a well-known public package
Both installations work fine but when I go to snapshot()
Fetching sources for pkgA ... OK (local)
Fetching sources for pkgB ... OK (CRAN current)
It seems that snapshot looks to my CRAN before it looks to my local repos and since my modified package and a publicly available package share the same name, it snapshots the current CRAN version instead.
Is there any easy fix to this behavior? Perhaps something that I should be doing differently?
- 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
- 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.
More from rstudio/packrat
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·