I am using R and need to display some graphs. To do so I need to install the “stats” package within R.
After entering the command
in the terminal I get the following error.
Error in contrib.url(repos, type) :
trying to use CRAN without setting a mirror
Calls: install.packages -> grep -> contrib.url
It seems that I need to specify which mirror site from the CRAN main website should be used in order to install the “stats” package.
That is the part I do not know how to do. How do we specify which mirror site to use via the terminal?