packrat::repos_create does not create PACKAGES file
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 409
- Forks
- 89
- PR merge metrics
- No merged PRs in 30d
Description
I am not sure if this is intended but according to this workflow packrat::repos_create should create a working CRAN like repository. However when I execute the following code. I get an error that the PACKAGE file is missing from the repository.
path = 'c:\test_repos_create'
packrat::repos_create( path )
#throws an error
miniCRAN::addPackage( 'Rccp', path )
file.exists( paste0( path, '\src\contrib\PACKAGES' ) )
file.exists( paste0( path, '\src\contrib\PACKAGES.rds') )
unlink(path)
I can workaround this using miniCRAN::makeRepo though.
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 by inspecting the packrat::repos_create entry point and reproduce the issue with the Windows path shown in the report. Compare the resulting repository with what miniCRAN::addPackage expects, and consider the work complete when the repository contains usable PACKAGES and PACKAGES.rds metadata and the reported workflow succeeds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100