Skip to content

[Copilot]: Fix r-universe install failing because CRAN not specified as backup #570

@rempsyc

Description

@rempsyc

Task description

Please update copilot instructions. Right now, they only specify, e.g., repos="https://r-lib.r-universe.dev", but everywhere should probably look like repos = c('https://paul-buerkner.r-universe.dev', 'https://cloud.r-project.org') (like online examples, so reference to CRAN install as backup) to properly install dependencies? Otherwise I am seeing errors like this:

> if (!requireNamespace("brms", quietly = TRUE)) { install.packages("brms", repos="https://paul-buerkner.r-universe.dev") }
Installing package into/home/runner/R/library’
(aslibis unspecified)
Warning: dependenciesrstan’, ‘ggplot2’, ‘loo’, ‘posterior’, ‘rstantools’, ‘bayesplot’, ‘bridgesampling’, ‘future’, ‘future.apply’, ‘matrixStats’, ‘nleqslv’, ‘coda’, ‘abindare not available
trying URL 'https://paul-buerkner.r-universe.dev/src/contrib/sha256-c7561e44d7a064af6b4e1020628c9328a4f790b61e018e046b785228c20a50f0'
downloaded 3.2 MB

ERROR: dependenciesrstan’, ‘ggplot2’, ‘loo’, ‘posterior’, ‘rstantools’, ‘bayesplot’, ‘bridgesampling’, ‘future’, ‘future.apply’, ‘matrixStats’, ‘nleqslv’, ‘coda’, ‘abindare not available for packagebrms

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions