Skip to content

Commit

Permalink
[ci] remove unnecessary workarounds in R-package macOS jobs (#6331)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Feb 20, 2024
1 parent d0d7071 commit 008ebaf
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .ci/test_r_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,29 +96,6 @@ if [[ $OS_NAME == "macos" ]]; then
sudo installer \
-pkg $(pwd)/R.pkg \
-target / || exit 1

# Older R versions (<= 4.1.2) on newer macOS (>= 11.0.0) cannot create the necessary symlinks.
# See https://github.com/r-lib/actions/issues/412.
if [[ $(sw_vers -productVersion | head -c2) -ge "11" ]]; then
sudo ln \
-sf \
/Library/Frameworks/R.framework/Resources/bin/R \
/usr/local/bin/R
sudo ln \
-sf \
/Library/Frameworks/R.framework/Resources/bin/Rscript \
/usr/local/bin/Rscript
fi

# Fix "duplicate libomp versions" issue on Mac
# by replacing the R libomp.dylib with a symlink to the one installed with brew
if [[ $COMPILER == "clang" ]]; then
ver_arr=( ${R_MAC_VERSION//./ } )
R_MAJOR_MINOR="${ver_arr[0]}.${ver_arr[1]}"
sudo ln -sf \
"$(brew --cellar libomp)"/*/lib/libomp.dylib \
/Library/Frameworks/R.framework/Versions/${R_MAJOR_MINOR}/Resources/lib/libomp.dylib
fi
fi

# fix for issue where CRAN was not returning {lattice} when using R 3.6
Expand Down

0 comments on commit 008ebaf

Please sign in to comment.