-
Notifications
You must be signed in to change notification settings - Fork 318
Closed
Description
As pointed out in this thread on R-devel, the following line could break at a future (sufficiently high) release of reticulate:
Line 63 in 2ed2029
| if(getNamespaceVersion("reticulate") >= "1.36.0") "r-keras" |
getNamespaceVersion("reticulate")
#> version
#> "1.39.0"
getNamespaceVersion("reticulate") >= "1.99.0"
#> version
#> FALSE
getNamespaceVersion("reticulate") >= "1.100.0"
#> version
#> TRUEThis can be solved with either the suggested compareVersion() or via wrapping with as.package_version():
compareVersion(getNamespaceVersion("reticulate"), "1.38.0") >= 0
#> [1] TRUE
compareVersion(getNamespaceVersion("reticulate"), "1.100.0") >= 0
#> [1] FALSE
as.package_version(getNamespaceVersion("reticulate")) >= "1.38.0"
#> [1] TRUE
as.package_version(getNamespaceVersion("reticulate")) >= "1.100.0"
#> [1] FALSEReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels