Skip to content

Provide a way to start context for extention packages #1082

@yutannihilation

Description

@yutannihilation

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...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions