@@ -227,10 +227,10 @@ greta_python_deps <- function(tf_version = "2.15.0",
227
227
class = c(" greta_python_deps" , " data.frame" )
228
228
)
229
229
230
+ # check for envvar to silence these checks
230
231
check_tfp_tf_semantic(deps_obj )
231
232
check_greta_tf_range(deps_obj )
232
233
check_greta_tfp_range(deps_obj )
233
-
234
234
check_greta_python_range(deps_obj $ python_version )
235
235
check_greta_deps_config(deps_obj )
236
236
@@ -379,7 +379,6 @@ check_greta_python_range <- function(version_provided,
379
379
check_greta_deps_config <- function (python_deps ,
380
380
call = rlang :: caller_env()){
381
381
382
- # check for envvar to silence these checks
383
382
check_greta_python_deps(python_deps )
384
383
385
384
python_deps <- python_deps | >
@@ -462,9 +461,9 @@ check_greta_deps_config <- function(python_deps,
462
461
" suggest_py" = py_matches
463
462
)
464
463
465
- suggested_tfp <- as.character(suggested_match $ tfp_version )
466
- suggested_tf <- as.character(suggested_match $ tf_version )
467
- suggested_py <- as.character(suggested_match $ python_version_max )
464
+ suggested_tfp <- as.character(max( suggested_match $ tfp_version ) )
465
+ suggested_tf <- as.character(max( suggested_match $ tf_version ) )
466
+ suggested_py <- as.character(max( suggested_match $ python_version_max ) )
468
467
469
468
cli :: cli_abort(
470
469
message = c(" Provided {.code greta_python_deps} does not match valid \\
0 commit comments