Skip to content

Latest commit

 

History

History
40 lines (21 loc) · 2.25 KB

NEWS.md

File metadata and controls

40 lines (21 loc) · 2.25 KB

reprex 0.1.1.9000

  • reprex_addin() displays notificaton as inline dialog

reprex 0.1.1

  • pandoc added to SystemRequirements

reprex 0.1.0

  • outfile = NA causes outfiles to be left in working directory. Filenames will be based on the input file, if there was one.

  • reprex() strips any leading prompts from input code.

  • Added functions reprex_clean(), reprex_invert(), and reprex_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 to reprex() 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 arguments opts_chunk and opts_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. The upload.fun option defaults to knitr::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)
  • Order of reprex() arguments has changed.

  • reprex() gains the si argument to request that devtools::session_info() or sessionInfo() be appended to reprex code (#6 @dgrtwo). When si = TRUE and venue = "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 from clipr and thus should work on Windows and suitably prepared Unix-like systems, in addition to Mac OS. (#16 @mdlincoln)

reprex 0.0.0.9000

  • I tweeted about this and some people actually used it!