I'm implementing r-lib/vdiffr#88 to let vdiffr get rid of explicit context(). At the time of starting it, I thought I just can use testthat::context() inside start_test(). But, now context() is deprecated, and ProgressReporter uses an unexported function start_context(). So, now I don't know what to do.
|
start_file = function(file) { |
|
self$file_name <- file |
|
self$ctxt_issues <- Stack$new() |
|
self$ctxt_start_time <- proc.time() |
|
|
|
name <- context_name(self$file_name) |
|
context_start(name) |
|
}, |
Are there any way for external packages to do the same thing as ProgressReporter does? Or, more broadly, what is the supposed way of implementing a custom reporter at the moment...?
I'm implementing r-lib/vdiffr#88 to let vdiffr get rid of explicit
context(). At the time of starting it, I thought I just can usetestthat::context()insidestart_test(). But, nowcontext()is deprecated, andProgressReporteruses an unexported functionstart_context(). So, now I don't know what to do.testthat/R/reporter-progress.R
Lines 74 to 81 in d07d805
Are there any way for external packages to do the same thing as
ProgressReporterdoes? Or, more broadly, what is the supposed way of implementing a custom reporter at the moment...?