A CRAN mirror is a server that hosts copies of the Comprehensive R Archive Network's repository. These mirrors are distributed globally to provide faster access and reliability when downloading R packages.
How to Choose a CRAN Mirror:
-
Select a Nearby Mirror: Choose one geographically close to you for faster download speeds. https://cran.r-project.org/mirrors.html Mirror status available at https://cran.r-project.org/mirmon_report.html.
-
options(repos = "https://cran.stat.auckland.ac.nz/")
-
Or use RStudio: Go to Tools > Global Options > Packages. Click Change to select a mirror.