tests/testthat/helper-no-progress.R

# Wrapper for test_that that disables/hides the progress bar.
# This makes the output of devtools::test() more readable
# Cleans up: restores the previous progress at the end.
test_that_no_progress <- function(test, code) {
	old_progress <- getOption("pROCProgress")
	options(pROCProgress = list(name = "none"))
	tryCatch({
			test_that(test, code)
		},
		finally = function() {
			options(pROCProgress = old_progress)
		}
	)
}

Try the pROC package in your browser

Any scripts or data that you put into this service are public.

pROC documentation built on Nov. 2, 2023, 6:05 p.m.