Skip to content

Commit d07cee3

Browse files
authored
Merge branch 'main' into use-py_require
2 parents 58b7910 + 44cac16 commit d07cee3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
- `use_backend()` gains a `gpu` argument, to specify if a GPU-capable set of
77
dependencies should be resolved by `py_require()`.
88

9+
- The progress bar in `fit()`, `evaluate()` and `predict()` now
10+
defaults to not presenting during testthat tests.
11+
912
## Added compatibility with Keras v3.8.0. User-facing changes:
1013

1114
- New symbols:

R/model-training.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,8 @@ as_model_verbose_arg <- function(x) {
10541054
# x == auto
10551055
if(isTRUE(getOption('knitr.in.progress')))
10561056
return(2L)
1057+
if(identical(Sys.getenv("TESTTHAT"), "true"))
1058+
return(0L) # don't draw progress in tests
10571059
x # "auto"
10581060
}
10591061

0 commit comments

Comments
 (0)