Keynote or PowerPoint, with reprex(., venue = "rtf"). Prepare (un)rendered, syntax-highlighted code snippets to paste into This is useful for Slack code snippets, email, Get a runnable R script, augmented with commented output, with Get slightly different Markdown, optimized for Slack messages, with Use one of the RStudio add-ins to use the selected text or current Reprex(input = "my_reprex.R") gets code from file Produces same output as reprex(input = "median(1:3)\n") Leading promptsĪre stripped from input source: reprex(input = "> median(1:3)\n") Vector (detected via length or terminating newline). Reprex(input = "mean(rnorm(10))\n") gets code from character Reprex(mean(rnorm(10))) to get code from expression. Instead of reading from the clipboard, you can: Those venues can be formally requested via venue = "so" and venue = "ds", but they are just aliases for venue = "gh". In addition to GitHub, this Markdown also works on Stack Overflow and Discourse. Anyone else can copy, paste, and run this immediately.
0 Comments
Leave a Reply. |