reprex_addin()
displays notificaton as inline dialog
- pandoc added to SystemRequirements
-
outfile = NA
causes outfiles to be left in working directory. Filenames will be based on theinput
file, if there was one. -
reprex()
strips any leading prompts from input code. -
Added functions
reprex_clean()
,reprex_invert()
, andreprex_rescue()
in order to go backwards, i.e. recover source from a wild-caught reprex. -
venue = "R"
(or"r"
) can be used to get an R script back, augmented with commented output. -
comment
argument added to specify prefix for commented output. -
Added an RStudio addin, accessed via "Render reprex".
-
input
argument toreprex()
and friends handles code as string, character vector, or file path. -
The reprex is rendered via
callr::r_safe()
and is thus run in a clean, separate R process, eliminating any leakage of objects or loaded packages to/from the calling session. -
reprex()
gains optional argumentsopts_chunk
andopts_knit
, taking named list as input, in order to supplement or override default knitr chunk and package options, respectively. (#33)- This made the explicit
upload.fun
argument unnecessary, so it's gone. Theupload.fun
option defaults toknitr::imgur_upload
, which means figures produced by the reprex will be uploaded to imgur.com and the associated image syntax will be put into the Markdown, e.g.![](http://i.imgur.com/QPU5Cg9.png)
. (#15 @paternogbc)
- This made the explicit
-
Order of
reprex()
arguments has changed. -
reprex()
gains thesi
argument to request thatdevtools::session_info()
orsessionInfo()
be appended to reprex code (#6 @dgrtwo). Whensi = TRUE
andvenue = "gh"
(the default), session info is wrapped in a collapsible details tag. See an example (#55). -
Reprex code can be provided as an R expression. (#6 @dgrtwo, #35)
-
reprex()
uses clipboard functionality fromclipr
and thus should work on Windows and suitably prepared Unix-like systems, in addition to Mac OS. (#16 @mdlincoln)
- I tweeted about this and some people actually used it!