Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update links to Posit docs. #458

Merged
merged 1 commit into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Expand Up @@ -60,4 +60,4 @@ Encoding: UTF-8
Language: en-US
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3.9000
SystemRequirements: pandoc (>= 2.0) - http://pandoc.org
SystemRequirements: pandoc (>= 2.0) - https://pandoc.org/
8 changes: 4 additions & 4 deletions R/reprex-addin.R
Expand Up @@ -2,16 +2,16 @@
#'
#' @description `reprex_addin()` opens an [RStudio
#' gadget](https://shiny.rstudio.com/articles/gadgets.html) and
#' [addin](http://rstudio.github.io/rstudioaddins/) that allows you to say
#' [addin](https://rstudio.github.io/rstudioaddins/) that allows you to say
#' where the reprex source is (clipboard? current selection? active file?
#' other file?) and to control a few other arguments. Appears as "Render
#' reprex" in the RStudio Addins menu.
#'
#' @description `reprex_selection()` is an
#' [addin](http://rstudio.github.io/rstudioaddins/) that reprexes the current
#' [addin](https://docs.posit.co/ide/user/ide/guide/productivity/add-ins.html) that reprexes the current
#' selection, optionally customised by options. Appears as "Reprex selection"
#' in the RStudio Addins menu. Heavy users might want to create a keyboard
#' shortcut (`https://support.posit.co/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts`).
#' in the RStudio Addins menu. Heavy users might want to [create a keyboard
#' shortcut](https://docs.posit.co/ide/user/ide/guide/productivity/custom-shortcuts.html).
#' Suggested shortcut: Cmd + Shift + R (macOS) or Ctrl + Shift + R (Windows).
#'
#' @export
Expand Down
7 changes: 3 additions & 4 deletions man/reprex_addin.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions vignettes/articles/magic-reprex.Rmd
@@ -1,6 +1,6 @@
---
title: "Magic reprex"
author: "[Nicholas Tierney](http://www.njtierney.com)"
author: "[Nicholas Tierney](https://www.njtierney.com/)"
---

> This article has been adapted from a post on [Nick Tierney's blog](https://www.njtierney.com/post/2017/01/11/magic-reprex/) to help spread the good word about reprex! :) - **Nick Tierney**
Expand All @@ -15,7 +15,7 @@ So, after some sensible swearing and frustration, you might ask yourself somethi

> Surely there's an easy, reproducible way to ... make reproducible examples?

Enter the R package reprex (on [CRAN](https://cran.r-project.org/package=reprex), on [GitHub](https://github.com/tidyverse/reprex)), by [Jenny Bryan](http://www.github.com/jennybc).
Enter the R package reprex (on [CRAN](https://cran.r-project.org/package=reprex), on [GitHub](https://github.com/tidyverse/reprex)), by [Jenny Bryan](https://www.github.com/jennybc).

In the fashion of the times right now, I'll illustrate reprex with a gif, which shows the following things:

Expand Down Expand Up @@ -138,7 +138,7 @@ ggplot(data = lm_augmented,
y = Sepal.Length)) +
geom_point()

![](http://i.imgur.com/h72ZEKG.png)
![](https://i.imgur.com/h72ZEKG.png)
```

You can even show the results of the `session_info()`, for maximum reproducibility, by adding the argument: `reprex::reprex(session_info = TRUE)`, which adds a super nifty drop down box for the session info.
Expand All @@ -156,7 +156,7 @@ I really like these sorts of small tools in R. Squinting at a distance you might

But then when you're actually up close, you realise this means that you don't have to bend your brain around doing this thing, which can range from mildly annoying to mostly infuriating.

You save time and energy, and can focus more on **doing what you want to do**, and less on **fighting against interruptions**. This comic by [Jason Heeris](http://heeris.id.au/2013/this-is-why-you-shouldnt-interrupt-a-programmer/) illustrates this point nicely, I think:
You save time and energy, and can focus more on **doing what you want to do**, and less on **fighting against interruptions**. This comic by Jason Heeris illustrates this point nicely, I think:

<p>
<div style="height: auto">
Expand All @@ -167,5 +167,5 @@ You save time and energy, and can focus more on **doing what you want to do**, a

Once again thank you to Jenny Bryan for making our lives easier. Jenny will be joining the RStudio team this year and I am really looking forward to seeing what she gets up to.

Read more about reprex on github [here](http://www.github.com/tidyverse/reprex#readme).
Read more about reprex on GitHub [here](https://github.com/tidyverse/reprex#readme).