From 1466aeb362233f0aca23ea762057ef4ee9dc48bc Mon Sep 17 00:00:00 2001
From: Elodie  CHAPEAUBLANC <elodie.chapeaublanc@pasteur.fr>
Date: Tue, 18 Apr 2023 09:33:31 +0200
Subject: [PATCH] Update install_r_packages.R

---
 scripts/install_r_packages.R | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/install_r_packages.R b/scripts/install_r_packages.R
index 40a94b7..32a9cc5 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
-- 
GitLab