-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add r.ini for R #17
Conversation
Windows 似乎匹配不到稳定版本: [
{
"distro": "R",
"category": "app",
"urls": [
{
"name": "devel (Windows)",
"url": "/CRAN/bin/windows/base/R-devel-win.exe"
},
{
"name": "4.4.2 (macOS >= 11, x86_64)",
"url": "/CRAN/bin/macosx/big-sur-x86_64/base/R-4.4.2-x86_64.pkg"
},
{
"name": "4.4.2 (macOS >= 11, arm64)",
"url": "/CRAN/bin/macosx/big-sur-arm64/base/R-4.4.2-arm64.pkg"
},
{
"name": "4.2.3 (macOS >= 10.13)",
"url": "/CRAN/bin/macosx/base/R-4.2.3.pkg"
}
]
}
] |
listvers 太小了,devel 把稳定版挤出去了,等我改下 |
[
{
"distro": "R",
"category": "app",
"urls": [
{
"name": "devel (Windows)",
"url": "/CRAN/bin/windows/base/R-devel-win.exe"
},
{
"name": "4.4.2patched (Windows)",
"url": "/CRAN/bin/windows/base/R-4.4.2patched-win.exe"
},
{
"name": "4.4.2 (macOS >= 11, x86_64)",
"url": "/CRAN/bin/macosx/big-sur-x86_64/base/R-4.4.2-x86_64.pkg"
},
{
"name": "4.4.2 (macOS >= 11, arm64)",
"url": "/CRAN/bin/macosx/big-sur-arm64/base/R-4.4.2-arm64.pkg"
},
{
"name": "4.2.3 (macOS >= 10.13)",
"url": "/CRAN/bin/macosx/base/R-4.2.3.pkg"
}
]
}
] patched 看起来不是官方构建,在 /CRAN/bin/windows/base/rpatched.html:
|
我的理解是,patched 是甄选了些 devel 上的修复而来的版本,所以“not an official release”应该是“既不是 devel 也不是稳定版,没有精力单独为其追踪状态”的声明 你同意的话,可以让 patched 和 devel 成为可选项,但是目前的架构下需要单独的 ini 文件 |
R 语言的 Windows 用户大部分的选择是哪个版本呢?
可以都显示,最多应该这个 ini 里面加一个 section 就行? |
搜索引擎搜“R Windows Install”应该只会搜到 https://cran.r-project.org/bin/windows/base/ 这个展示稳定版的页面,patched 版本需要点这个页面的小字才会看到 像我这样只是一两个课会用到的应该都是按照搜索引擎得到的结果来了。如果是专业一些的用户,可能还会用 Conda 之类的工具来管理 R 和其软件包?那样就跟这个列表不是很大关系了
version 里用什么样的文案来表明这个跟稳定版的关系比较好?此外有没有办法使 patched 的顺序排在稳定版之后 |
比如这样: [r-windows]
distro = R
location = CRAN/bin/windows/base/R-*-win.exe
pattern = R-([\d\.]+)-win.exe
platform = Windows
listvers = 1
version = $1
category = app
[r-windows-unstable]
distro = R
location = CRAN/bin/windows/base/R-*-win.exe
pattern = R-([\d\.]+patched|devel)-win.exe
platform = Windows, unstable
listvers = 2
version = $1
category = app 应该会生成(镜子还在修,不好实测) [
{
"distro": "R",
"category": "app",
"urls": [
{
"name": "4.4.2 (Windows)",
"url": "/CRAN/bin/windows/base/R-4.4.2-win.exe"
},
{
"name": "devel (Windows, unstable)",
"url": "/CRAN/bin/windows/base/R-devel-win.exe"
},
{
"name": "4.4.2patched (Windows, unstable)",
"url": "/CRAN/bin/windows/base/R-4.4.2patched-win.exe"
},
{
"name": "4.4.2 (macOS >= 11, x86_64)",
"url": "/CRAN/bin/macosx/big-sur-x86_64/base/R-4.4.2-x86_64.pkg"
},
{
"name": "4.4.2 (macOS >= 11, arm64)",
"url": "/CRAN/bin/macosx/big-sur-arm64/base/R-4.4.2-arm64.pkg"
},
{
"name": "4.2.3 (macOS >= 10.13)",
"url": "/CRAN/bin/macosx/base/R-4.2.3.pkg"
}
]
}
] |
顺序看起来不太方便处理,因为不同的 section 最后会在一起再排序一次: [
{
"distro": "R",
"category": "app",
"urls": [
{
"name": "devel (Windows, unstable)",
"url": "/CRAN/bin/windows/base/R-devel-win.exe"
},
{
"name": "4.4.2patched (Windows, unstable)",
"url": "/CRAN/bin/windows/base/R-4.4.2patched-win.exe"
},
{
"name": "4.4.2 (Windows)",
"url": "/CRAN/bin/windows/base/R-4.4.2-win.exe"
},
{
"name": "4.4.2 (macOS >= 11, x86_64)",
"url": "/CRAN/bin/macosx/big-sur-x86_64/base/R-4.4.2-x86_64.pkg"
},
{
"name": "4.4.2 (macOS >= 11, arm64)",
"url": "/CRAN/bin/macosx/big-sur-arm64/base/R-4.4.2-arm64.pkg"
},
{
"name": "4.2.3 (macOS >= 10.13)",
"url": "/CRAN/bin/macosx/base/R-4.2.3.pkg"
}
]
}
] |
暂时就这样吧,想不出除了往 version 前面塞东西以外的办法 |
包括了 Windows 和 macOS 的安装包
Linux 构建以额外系统软件仓库的形式分发,不适合放入
Windows on Arm 的安装包还没有通过 CRAN 分发,到时候再修改