Skip to content

Commit

Permalink
Merge pull request #609 from rstudio/fix-pkg-version-check
Browse files Browse the repository at this point in the history
Cast `getNamespaceVersion()` with `as.package_version()`
  • Loading branch information
t-kalinowski authored Oct 21, 2024
2 parents e32ac5e + cd5b8ea commit 4da7560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ tf_v2 <- function() {

environment = c(
"r-tensorflow",
if(getNamespaceVersion("reticulate") >= "1.36.0") "r-keras"
if (as.package_version(getNamespaceVersion("reticulate")) >= "1.36.0")
"r-keras"
),

# before_load = function() {
Expand Down

0 comments on commit 4da7560

Please sign in to comment.