Skip to content

Commit

Permalink
cast getNamespaceVersion() with as.package_version()
Browse files Browse the repository at this point in the history
closes #607
  • Loading branch information
t-kalinowski committed Oct 21, 2024
1 parent e32ac5e commit cd5b8ea
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 cd5b8ea

Please sign in to comment.