tidyverse / reprex

Render bits of R code for sharing, e.g., on GitHub or StackOverflow.
https://reprex.tidyverse.org
Other
741 stars 80 forks source link

Take advantage of some backtrace improvements #433

Closed jennybc closed 1 year ago

jennybc commented 1 year ago

Details in https://github.com/r-lib/rlang/pull/1557, which would need to be merged and released first.

https://github.com/tidyverse/reprex/blob/77ec1f612ea3d94534d6b37336a45f2d2957f3b2/R/reprex_document.R#L136-L141

should look more like

rlang::global_entrace()
options(
  keep.source = TRUE,
  rlang_backtrace_on_error_report = "full",
  rlang_backtrace_on_warning_report = "full"
  crayon.enabled = FALSE,
  reprex.current_venue = "{venue}"
)
lionel- commented 1 year ago

This would also close #230.

jennybc commented 1 year ago

The relevant rlang PR has been merged, but not yet released.

krlmlr commented 1 year ago

Now in rlang 1.1.0.