There was an error while loading. Please reload this page.
1 parent 53ed7cd commit 80cc227Copy full SHA for 80cc227
1 file changed
R/package.R
@@ -96,8 +96,7 @@ keras <- NULL
96
97
.onAttach <- function(libname, pkgname) {
98
packageStartupMessage(
99
- "The keras package is deprecated. Use the keras3 package instead.",
100
- "To use legacy keras via py_require(), call py_require_legacy_keras() at the start of the R session."
+ "The keras package is deprecated. Use the keras3 package instead."
101
)
102
}
103
@@ -167,6 +166,9 @@ py_require_legacy_keras <- function(extra_packages = TRUE) {
167
166
},
168
169
on_error = function(e) {
+ message(
170
+ "To use legacy Keras via py_require(), call py_require_legacy_keras() at the start of the R session."
171
+ )
172
if (is_tensorflow_implementation())
173
stop(tf_config()$error_message, call. = FALSE)
174
else {
0 commit comments