I have some problems in downloading two packages

I want to install two packages - Icens and DCchoice.
But there are error messages as follows ;

1st error message
install.packages("Icens",repos=c("@CRAN@","http://www.bioconductor.org/packages/release/bioc"),dep=TRUE)
Installing package into ‘C:/Users/pjh74/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Secure CRAN mirrors

2nd error message
install.packages("DCchoice",repos=c("@CRAN@","https://cran.r-project.org/package=DCchoice"),dep=TRUE)
Enter an item from the menu, or 0 to exit

How can I solve these problems?

Did you select a CRAN mirror (probably from the console)?

You can also try options("repos" = c(CRAN="https://cran.rstudio.com")) - pick your mirror here: CRAN - Mirrors

Enter an item from the menu, or 0 to exit

Did you select a number from the console?

Thank you for your advice.

In case of "selecting a CRAN mirror", I went to the menu "Tools -> Global options -> Packages -> Primary CRAN repository" and changed into a server.
Then DCchoice package was successfully installed.

With regard to Icens package, I found a code for installing the package at the bioconductor homepage and used it. Then the package was also successfully installed.

2 Likes

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.