This commit is contained in:
MangoPig
2026-06-01 00:28:14 +01:00
parent 58531bf579
commit 52054493cc
8 changed files with 231 additions and 40 deletions

View File

@@ -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