Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
DavisVaughan opened this issue May 7, 2024 · 0 comments · Fixed by #1621
Closed

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

DavisVaughan opened this issue May 7, 2024 · 0 comments · Fixed by #1621

Comments

@DavisVaughan
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant