rstudio / rstudio/packrat

repos_upload - failed to copy built package to CRAN repo

Open
#476 0 comments 0 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

When the code of a package is updated and repos_upload is used to upload the package to a local CRAN-like repo, in which an earlier version of the package code exists, I get the error "failed to copy built package to CRAN repo", but no other explanation.

However, if the existing package in the local CRAN-like repo is deleted before calling repos_upload, the package uploads without errors.

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 repos_upload entry point and reproduce the failure with an older package version already present in a local CRAN-like repository. Compare that run with one where the existing package is deleted, then trace the reported copy failure. Done means repos_upload handles an existing package correctly or reports the underlying cause clearly.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.