Closed olivroy closed 4 months ago
Like pkgdown does
Sys.getenv("IN_PKGDOWN")
Something like
"IN_REPREX"
So it is easy to know you are in reprex.
I am trying to see how I could tackle #419 inside gt, but I am having a hard time finding out if we are in reprex or not.
The following function doesn't seem to be reliable?
in_reprex <- function() "gfm-yaml_metadata_block" %in% knitr::opts_knit$get("rmarkdown.pandoc.to")
No need, reprex sets an option https://github.com/dmurdoch/rgl/pull/186
in_reprex <- function() !is.null(getOption("reprex.current_venue"))
Like pkgdown does
Sys.getenv("IN_PKGDOWN")
Something like
"IN_REPREX"
So it is easy to know you are in reprex.
I am trying to see how I could tackle #419 inside gt, but I am having a hard time finding out if we are in reprex or not.
The following function doesn't seem to be reliable?