File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,22 @@ CLONE_DIR="/home/onyxia/work/funathon-sujet3"
6
6
git clone --depth 1 $REPO_URL $CLONE_DIR
7
7
cd $CLONE_DIR
8
8
9
+ #! /bin/bash
10
+
11
+ # Check if the first parameter is "R"
12
+ if [[ $LANGUAGE == " R" ]]; then
13
+ # Define the path to the package list file
14
+ package_file=" requirements_$LANGUAGE .txt" # Replace with the path to your package list file
15
+
16
+ # Read the package names from the file and install them
17
+ while read -r package; do
18
+ Rscript -e " if (!requireNamespace('$package ', quietly = TRUE)) install.packages('$package ')"
19
+ done < " $package_file "
20
+ else
21
+ pip install -r requirements_" $LANGUAGE " .txt
22
+ fi
23
+
9
24
# Install required packages
10
- pip install -r requirements_" $LANGUAGE " .txt
11
25
12
26
# Open the relevant notebook when starting Jupyter Lab
13
27
jupyter server --generate-config
You can’t perform that action at this time.
0 commit comments