diff --git a/requirements.R b/requirements.R
index 706cc513d5d73ff0b708d1772f6625d2640fb113..5050a15fa5af2c3890ef6e60544bd6ba5c70bfa3 100644
--- a/requirements.R
+++ b/requirements.R
@@ -1,3 +1,10 @@
+# CRAN repository
+local({
+    r <- getOption("repos")
+    r["CRAN"] <- "http://cran.r-project.org"
+    options(repos=r)
+})
+
 # manage R packages with pacman R package
 if(!requireNamespace("pacman", quietly = TRUE)) install.packages("pacman")