reprex option to change default venue

reprex
#1

I love the R package reprex. I especially love the ability to reprex for different venues. By default, reprex renders for GitHub (venue = "gh"), which is definitely a sensible default. Does anyone know of a way to change the default to another venue?

I primarily reprex things to upload to Slack (venue = "r"). It would be great if I could set this option in my .Rprofile, and then the RStudio reprex addin could use this option.

I haven't been able to find functionality for this in the reprex documentation, but wanted to post here before creating a GitHub issue.

0 Likes

#2

It doesn't look like venue uses any kind of global option as far as I can tell, but it sure would be neat!

0 Likes

#3

You can always put something like this into your .Rprofile:

reprex <- purrr::partial(reprex::reprex, venue = "r")
0 Likes