MacOS
This commit is contained in:
13
Scripts/r.sh
13
Scripts/r.sh
@@ -118,6 +118,19 @@ elif is_fedora_family; then
|
||||
write_r_wrapper "R" 'exec "$(command -v R)"'
|
||||
write_r_wrapper "Rscript" 'exec "$(command -v Rscript)"'
|
||||
|
||||
elif is_macos; then
|
||||
|
||||
echo -e "${BLUE} LOG:${YELLOW} macOS detected. Using Homebrew R...${NC}"
|
||||
install_status=0
|
||||
install_packages r || install_status=$?
|
||||
if [ "$install_status" -ne 0 ]; then
|
||||
exit "$install_status"
|
||||
fi
|
||||
|
||||
R_BIN="R"
|
||||
write_r_wrapper "R" 'exec "$(command -v R)"'
|
||||
write_r_wrapper "Rscript" 'exec "$(command -v Rscript)"'
|
||||
|
||||
else
|
||||
echo -e "${RED} ERROR:${NC} Unsupported OS: $OS"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user