This is a test version of Biostars. For the public version, visit https://www.biostars.org.
BiocLite installation issues in R version 4.0.5

While installing BiocLite

source('https://bioconductor.org/biocLite.R')

Getting error like this-

Error: With R version 3.5 or greater, install Bioconductor packages
 using BiocManager; see https://bioconductor.org/install

While following the script given in https://bioconductor.org/install, I'm getting again error like this-

'getOption("repos")' replaces Bioconductor standard repositories, see
'?repositories' for details
replacement repositories:
    CRAN: https://cran.rstudio.com/
Bioconductor version 3.12 (BiocManager 1.30.12), R 4.0.5 (2021-03-31)

How to install BiocLite in R version 4.0.5?

r bioclite bioconductor biocmanager r-studio

Please do not delete posts once they receive a comment/answer. Accept the answer (green check mark) below if it has solved your problem.

1 answer

BiocLite has been deprecated quite some time ago, it was for R < 3.5.0. As in the link you provide the current installation machinery relies on BiocManager::install():

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install(version = "3.12")

Once this is installed via CRAN you can go like BiocManager::instal("BiocPackageName")

Log in to answer this question.