Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
008ebaf2
Unverified
Commit
008ebaf2
authored
Feb 20, 2024
by
James Lamb
Committed by
GitHub
Feb 20, 2024
Browse files
[ci] remove unnecessary workarounds in R-package macOS jobs (#6331)
parent
d0d70716
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
.ci/test_r_package.sh
.ci/test_r_package.sh
+0
-23
No files found.
.ci/test_r_package.sh
View file @
008ebaf2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment