rstudio / rstudio/packrat

‘splines’ is not a valid installed package

Open
#145 1 comment 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

Hi,

packrat has an issue with the package survival. survival depends on splines which is no longer on CRAN as a separate download. So when I depend on survival in a project I get the error in the subject.

That is even true when I use extlib:

> packrat::extlib("splines")
Error in library(package, character.only = TRUE, lib.loc = lib.loc) : 
  ‘splines’ is not a valid installed package

I use the current packrat from CRAN

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 by reproducing the reported failure with packrat::extlib("splines") and the survival dependency. Inspect packrat's handling of R packages that are no longer separate CRAN downloads. Done means survival can be depended on and splines can be loaded without the reported invalid-installed-package error.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system
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.