diff --git a/scripts/install_r_packages.R b/scripts/install_r_packages.R
index 40a94b7adfbbbe671db4a5b07152d0ceb1e195dd..32a9cc57d97853da2fb79dff67f94543122dd44b 100644
--- a/scripts/install_r_packages.R
+++ b/scripts/install_r_packages.R
@@ -4,7 +4,8 @@
 ### Date : 17/04/2023
 ### Aim : Install all packages from CRAN, BioConductor or github, requiered in the Shiny app.
 
-
+### Install pak packages first
+install.packages(c("pak","pkgcache","pkgdepends"), dependencies= NA)
 #### Load file with the list of packages
 packages_list <- read.csv(file = "/opt/scripts/packages_to_install.csv", header = FALSE, sep = ";", stringsAsFactors = FALSE)
 ### Install packages with dependencies with pak packages