-
Notifications
You must be signed in to change notification settings - Fork 15
sysreqs:::detect_r_version() returns NA on 4.0.0-alpha #19
Comments
The issue seems to be that Line 97 in 7bdd9f3
|
@jeroen @gaborcsardi The R version is downloaded from http://rversions.r-pkg.org/r-release and this currently returns "4.2.3". Where can we update this to "4.3.0"? Back to the original issue, I'm seeing: sysreqs::current_platform()
#> Error in `if (rver == "r-devel" && os == "osx") ...`:
#> ! missing value where TRUE/FALSE needed This patch fixes it: modified R/platform.R
@@ -46,7 +46,7 @@ detect_platform <- function() {
## r-devel-linux-x86_64-debian-gcc
## r-devel-linux-x86_64-fedora-clang
## r-devel-linux-x86_64-fedora-gcc
- if (rver == "r-devel" && os == "linux") {
+ if (identical(rver, "r-devel") && identical(os, "linux")) {
platform <- paste(
sep = "-",
platform,
@@ -56,13 +56,13 @@ detect_platform <- function() {
}
## r-devel-osx-x86_64-clang
- if (rver == "r-devel" && os == "osx") {
+ if (identical(rver, "r-devel") && identical(os, "osx")) {
platform <- paste(platform, sep = "-", comp)
}
## r-release-osx-x86_64-mavericks
## I am not completely sure what this is, btw.
- if (rver == "r-release" && os == "osx" && pkgtype == "mavericks") {
+ if (identical(rver, "r-release") && identical(os, "osx") && identical(pkgtype, "mavericks")) {
platform <- paste(platform, sep = "-", "mavericks")
}
However it might be better to:
|
Use https://api.r-hub.io/rversions/ instead, e.g. https://api.r-hub.io/rversions/resolve/release/macos What are using the sysreqs package for? pak is a better alternative for installing system requirements. |
sysreqs:::detect_r_version()
returns NA on 4.0.0-alpha, which result in all kind of downstream errors, e.g. inif (...)
statements.The text was updated successfully, but these errors were encountered: