Skip to content

Homegrown local_reproducible_output() should set cli.hyperlink = FALSE #1620

@DavisVaughan

Description

@DavisVaughan

To avoid accidental hyperlink generation during @includeRmd execution. This can happen with parent errors in rlang, for example, where it tries to show you the file location the error came from.

roxygen2/R/rd-eval.R

Lines 15 to 23 in 2357de6

local_reproducible_output <- function(.envir = parent.frame()) {
withr::local_options(
crayon.enabled = FALSE,
cli.unicode = FALSE,
cli.dynamic = FALSE,
rlang_interactive = FALSE,
width = 80,
.local_envir = .envir
)

The testthat version of this function does do that.

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