We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6aa55c9 + 93d4a57 commit b56e543Copy full SHA for b56e543
rstudio/c9s-python-3.9/run-rstudio.sh
@@ -16,7 +16,13 @@ fi
16
17
# Create lib folders if it does not exist
18
mkdir -p /opt/app-root/src/Rpackages/4.3
19
-cp -r /opt/app-root/bin/Rpackages/4.3/* /opt/app-root/src/Rpackages/4.3/
+for package in /opt/app-root/bin/Rpackages/4.3/*/;
20
+do
21
+ package_folder=$(basename "$package")
22
+ if [ ! -d "/opt/app-root/src/Rpackages/4.3/$package_folder" ]; then
23
+ cp -r /opt/app-root/bin/Rpackages/4.3/$package_folder /opt/app-root/src/Rpackages/4.3/
24
+ fi
25
+done
26
# rstudio terminal cant see environment variables set by the container runtime
27
# (which breaks kubectl, to fix this we store the KUBERNETES_* env vars in Renviron.site)
28
env | grep KUBERNETES_ >> /usr/lib64/R/etc/Renviron.site
0 commit comments