Skip to content

Commit 44cac16

Browse files
authored
Merge pull request #1488 from rstudio/no-progress-bar-in-tests
Don't draw progress bar in tests
2 parents 20470fe + a825c0a commit 44cac16

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
@@ -1,5 +1,8 @@
11
# keras3 (development version)
22

3+
- The progress bar in `fit()`, `evaluate()` and `predict()` now
4+
defaults to not presenting during testthat tests.
5+
36
## Added compatibility with Keras v3.8.0. User-facing changes:
47

58
- 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)