-
Notifications
You must be signed in to change notification settings - Fork 321
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
Erroneous use of getNamespaceVersion()
in a comparison
#607
Comments
FWIW that is due to a recent-ish change in R itself. The change, IIRC, occurred on the 'other side' i.e. we now need to promote the comparison string: edd@rob:~$ docker run --rm -ti r-base:4.3.3 Rscript -e 'getNamespaceVersion("base") > as.package_version("4.3.0")'
[1] TRUE
edd@rob:~$ docker run --rm -ti r-base:4.3.3 Rscript -e 'getNamespaceVersion("base") > as.package_version("4.4.0")'
[1] FALSE
edd@rob:~$ Ditto for 4.4.1 directly: edd@rob:~$ Rscript -e 'getNamespaceVersion("base") > as.package_version("4.3.0")'
[1] TRUE
edd@rob:~$ Rscript -e 'getNamespaceVersion("base") < as.package_version("4.5.0")'
[1] TRUE
edd@rob:~$ But your overall point stands: |
t-kalinowski
added a commit
that referenced
this issue
Oct 21, 2024
Thank you both! This is very helpful and much appreciated. The fix will be on main shortly. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As pointed out in this thread on R-devel, the following line could break at a future (sufficiently high) release of reticulate:
tensorflow/R/package.R
Line 63 in 2ed2029
This can be solved with either the suggested
compareVersion()
or via wrapping withas.package_version()
:The text was updated successfully, but these errors were encountered: