[MacOS] Add R to macOS images (#4996)

* Add R to macOS images

* Remove redundant already existing functions and tests
This commit is contained in:
Maksim Shilov
2022-02-04 21:00:07 +03:00
committed by GitHub
parent b53758f5a5
commit c01e7d1ed8
4 changed files with 6 additions and 9 deletions

View File

@@ -48,14 +48,9 @@ $languageAndRuntimeList = @(
(Get-ClangLLVMVersion)
(Get-GccVersion)
(Get-FortranVersion)
(Get-RVersion)
)
if ($os.IsCatalina) {
$languageAndRuntimeList += @(
(Get-RVersion)
)
}
# To sort GCC and Gfortran correctly, we need to use natural sort https://gist.github.com/markwragg/e2a9dc05f3464103d6998298fb575d4e#file-sort-natural-ps1
$toNatural = { [regex]::Replace($_, '\d+', { $args[0].Value.PadLeft(20) }) }
$markdown += New-MDList -Style Unordered -Lines ($languageAndRuntimeList | Sort-Object $toNatural)

View File

@@ -150,7 +150,7 @@ Describe "xctool" -Skip:($os.IsHigherThanCatalina) {
}
}
Describe "R" -Skip:($os.IsHigherThanCatalina) {
Describe "R" {
It "R" {
"R --version" | Should -ReturnZeroExitCode
}

View File

@@ -194,7 +194,8 @@
"zstd",
"zlib",
"libxext",
"libxft"
"libxft",
"r"
],
"cask_packages": [
"julia"

View File

@@ -110,7 +110,8 @@
"gmp",
"zlib",
"libxext",
"libxft"
"libxft",
"r"
],
"cask_packages": [
"julia"