WISH: Clarify "BiocManager.check_repositories" message and silence it in more cases?
还没有人认领这个 Issue。
评估
调研方向
从 R/repositories.R 开始,尤其是查看 issue 中链接的 repository 检查代码,并阅读 ?BiocManager::repositories。比较消息条件、BiocManager.check_repositories 选项、接受的 repository,以及所要求的环境变量行为。当预期的消息、文档和静默行为达成一致并由适当的测试覆盖时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Issue
It is not always clear why the following message appear:
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cloud.r-project.org
For instance, it shows up in the middle of a package installation when checking on R-hub, e.g.
* installing *source* package 'pillar' ...
** package 'pillar' successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cloud.r-project.org
** help
*** installing help indices
*** copying figures
** building package indices
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cloud.r-project.org
** installing vignettes
** testing if installed package can be loaded from temporary location
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cloud.r-project.org
** testing if installed package can be loaded from final location
'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
CRAN: https://cloud.r-project.org
** testing if installed package keeps a record of temporary installation path
* creating tarball
packaged installation of 'pillar' as 'pillar_1.8.1_R_x86_64-pc-linux-gnu.tar.gz'
* DONE (pillar)
Suggestions
Suggestion 1: Clarify help location
Improve the message to clarify in which package the help is from + use full stop and capitalize next sentence, e.g.
'getOption("repos")' replaces Bioconductor standard repositories, see
'?BiocManager::repositories' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
or even
'getOption("repos")' replaces Bioconductor standard repositories, see
'help("repositories", package = "BiocManager")' for details.
Replacement repositories:
CRAN: https://cloud.r-project.org
Suggestion 2: Explain why
It is also not clear from the message why it is shown. For example, does it try to warn me about something, and if so, why? Or is it just an FYI message?
Maybe the message itself can be improved, or the paragraph in ?BiocManager::repositories could be extended.
Suggestion 3: Is the help page up-to-date on this?
From
it looks like this is a message condition and not a warning condition. However, in ?BiocManager::repositories there is a mentioning of a "warning":
If alternative default repositories are known to provide appropriate versions of CRAN or Bioconductor packages, the warning may be silenced (displayed as a message) with
options(BiocManager.check_repositories = FALSE).
Also, the end of the same paragraph says:
A message is still printed, to serve as a reminder when debugging problems related to incompatible package installation.
Is that correct? Looking at the code, it looks like the note is only generated if R option BiocManager.check_repositories is TRUE.
Suggestion 4: Add all known CRAN repositories to the acceptance list
Could https://cloud.r-project.org, and all other known CRAN mirrors:
> m <- getCRANmirrors(all = FALSE, local.only = FALSE)
> str(m)
'data.frame': 99 obs. of 9 variables:
$ Name : chr "0-Cloud [https]" "Argentina (La Plata)" "Australia (Canberra) [https]" "Australia (Melbourne 1) [https]" ...
$ Country : chr "0-Cloud" "Argentina" "Australia" "Australia" ...
$ City : chr "0-Cloud" "La Plata" "Canberra" "Melbourne" ...
$ URL : chr "https://cloud.r-project.org/" "http://mirror.fcaglp.unlp.edu.ar/CRAN/" "https://cran.csiro.au/" "https://mirror.aarnet.edu.au/pub/CRAN/" ...
$ Host : chr "Automatic redirection to servers worldwide, currently sponsored by Rstudio" "Universidad Nacional de La Plata" "CSIRO" "AARNET" ...
$ Maintainer : chr "cran # rstudio.com" "esuarez # Fcaglp.unlp.edu.ar" "ben.tan # csiro.au, Jayesh.joshi # csiro.au, CSIROServiceDesk # csiro.au" "<sysadmin # aarnet.edu.au>" ...
$ OK : int 1 1 1 1 1 1 1 1 1 1 ...
$ CountryCode: chr "us" "ar" "au" "au" ...
$ Comment : chr "secure_mirror_from_master" "" "secure_mirror_from_master" "secure_mirror_from_master" ...
be accepted by default (when not using a snapshot mirror)?
Suggestion 5: Add environment variable
Since the default can be quite noisy (e.g. R-hub and GitHub Actions), would it be possible to control R option BiocManager.check_repositories via a corresponding environment variable, e.g. R_BIOCMANAGER_CHECK_REPOSITORIES. That would make it possible to silence these messages from outside of R.
- 主要语言
- R
- 星标
- 76
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Bioconductor/BiocManager 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 72/100
Bioconductor/BiocManager#96 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 45/100
Bioconductor/BiocManager#214 ·
-
难度 5/5 一周以上 新手友好度 30/100
Bioconductor/BiocManager#207 · 1 条评论 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
Bioconductor/BiocManager#190 ·
-
难度 5/5 一周以上 新手友好度 18/100
Bioconductor/BiocManager#186 · 5 条评论 ·
查看 Bioconductor/BiocManager 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug code cleaning
难度 2/5 1-3 小时 新手友好度 88/100
furrer-lab/abn#272 ·
-
R CMD check red on main: load_* loader tests fail (2026-season release assets not published yet)未关闭
难度 2/5 1-3 小时 新手友好度 69/100
sportsdataverse/hoopR#227 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
philchalmers/SimDesign#106 ·
-
难度 1/5 1 小时以内 新手友好度 64/100