Let `cran` and `bioc` be mapped to another server, e.g. an internal PPM
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
Direzione di ricerca
Start by tracing how --with-repos, rproj.toml, and rproj.lock handle cran and bioc, then follow how package history and downloads choose a server. The proposal’s done criteria are mapped URLs recorded in the lockfile and package downloads coming from the configured server, with the specified PPM and CRAN-mirror behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
Many organizations point R's cran at an internal Posit Package Manager (PPM) or a CRAN mirror. In rig:
--with-repos cran=<URL>fails with "already a repository of the project, with another URL", because the built-incranentry has no URL.- A
cranorbiocentry inrproj.tomlcannot take aurl. - Adding the server under another name and setting
crantoenabled = falseworks for solving, because acranorppm-cranrepository replaces the built-in feed. Butrepository = "cran"pins,--without-repos=cran, and the meaning ofcraninrproj.lockthen refer to the wrong thing. - Binaries are always downloaded from public P3M, whatever server the user configured. This breaks air-gapped installs and ignores the user's choice of server.
Proposal
-
Allow
--with-repos cran=<URL>(andbioc=<URL>), andurl = "..."on acranorbiocentry. This would mean "this is CRAN", andrproj.lockwould record the mapped URL. The current error stays for any other name that already exists with a different URL. -
The type of the mapped server would be detected as usual, or set with
type. -
rig would keep downloading the public package history from https://ppm.r-pkg.org (and https://ppm-bioc.r-pkg.org) unless
extend = falseis set. The history is only used to decide what to install; it is not where packages are downloaded from. -
Downloads always come from the server the user named:
- For a PPM, binaries come from the server's own
bin/linux/<distro>-<arch>/<R minor>/URLs, includingArchive/paths and dated snapshots. A source tarball served at a binary URL is detected and built from source (see #461). - For a CRAN mirror or another CRAN-like repository, rig never falls back to P3M, for binaries or for sources. Binaries come only from what the repository itself publishes (the
bin/indexes for macOS and Windows), so Linux installs are from source. If the repository does not have a package version that the metadata lists, rig reports an error, instead of fetching it from somewhere else.
Today a CRAN source package is downloaded from the mirror first and from PPM if the mirror does not have it. A mapped
cranshould not do that. - For a PPM, binaries come from the server's own
- Lingua principale
- Rust
- Stelle
- 1k
- Fork
- 41
- Merge medio
- 9h 33m
- PR unite (30g)
- 17
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di r-lib/rig
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
bug documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictionsForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
speakeasy-api/speakeasy#2159 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation target:powerpoint
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
tomast1337/PdfLapas#602 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno