Skip to content

Commit

Permalink
Update install-r-packages.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Nov 8, 2024
1 parent ef631da commit 33cd838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/install-r-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ fi

# Main script execution as NB_USER
echo "Running install-r-packages.sh as ${NB_USER}"
echo "Rscript location: $(which Rscript)"

# Set the file variable to the provided argument
INSTALL_FILE="$1"
Expand All @@ -29,7 +30,7 @@ fi

echo " Found file: $INSTALL_FILE"

# Install R packages using the provided R script
# Install R packages using the provided R script; should be /usr/local/bin/Rscript
if ! Rscript "$INSTALL_FILE"; then
echo " Error: Installation of packages from '$INSTALL_FILE' failed. Please check the script for errors." >&2
exit 1
Expand Down

0 comments on commit 33cd838

Please sign in to comment.