You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
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
>m<- getCRANmirrors(all=FALSE, local.only=FALSE)
> str(m)
'data.frame':99obs.of9variables:$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:int1111111111...$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.
The text was updated successfully, but these errors were encountered:
Issue
It is not always clear why the following message appear:
For instance, it shows up in the middle of a package installation when checking on R-hub, e.g.
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.
or even
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
BiocManager/R/repositories.R
Lines 21 to 37 in 7e3f92c
it looks like this is a
message
condition and not awarning
condition. However, in?BiocManager::repositories
there is a mentioning of a "warning":Also, the end of the same paragraph says:
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:
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.The text was updated successfully, but these errors were encountered: