From cd5b8ead7e40fe4413b8039bdeee96c273640da2 Mon Sep 17 00:00:00 2001 From: Tomasz Kalinowski Date: Mon, 21 Oct 2024 12:57:34 -0400 Subject: [PATCH] cast `getNamespaceVersion()` with `as.package_version()` closes #607 --- R/package.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/package.R b/R/package.R index d8547c7..702e110 100644 --- a/R/package.R +++ b/R/package.R @@ -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() {