From 33ccedffb699d5cdfc9c274bbe4acbdee3266dcf Mon Sep 17 00:00:00 2001 From: olivroy <52606734+olivroy@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:43:03 -0500 Subject: [PATCH] Update links to Posit docs. (#458) --- DESCRIPTION | 2 +- R/reprex-addin.R | 8 ++++---- man/reprex_addin.Rd | 7 +++---- vignettes/articles/magic-reprex.Rmd | 10 +++++----- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 204f5609..b893ee18 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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/ diff --git a/R/reprex-addin.R b/R/reprex-addin.R index 9a1044cf..bbc16f49 100644 --- a/R/reprex-addin.R +++ b/R/reprex-addin.R @@ -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 diff --git a/man/reprex_addin.Rd b/man/reprex_addin.Rd index fe2a8113..45d411cc 100644 --- a/man/reprex_addin.Rd +++ b/man/reprex_addin.Rd @@ -39,15 +39,14 @@ currently just an alias for "gh". } \description{ \code{reprex_addin()} opens an \href{https://shiny.rstudio.com/articles/gadgets.html}{RStudio gadget} and -\href{http://rstudio.github.io/rstudioaddins/}{addin} that allows you to say +\href{https://rstudio.github.io/rstudioaddins/}{addin} 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. \code{reprex_selection()} is an -\href{http://rstudio.github.io/rstudioaddins/}{addin} that reprexes the current +\href{https://docs.posit.co/ide/user/ide/guide/productivity/add-ins.html}{addin} 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 (\verb{https://support.posit.co/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts}). +in the RStudio Addins menu. Heavy users might want to \href{https://docs.posit.co/ide/user/ide/guide/productivity/custom-shortcuts.html}{create a keyboard shortcut}. Suggested shortcut: Cmd + Shift + R (macOS) or Ctrl + Shift + R (Windows). } diff --git a/vignettes/articles/magic-reprex.Rmd b/vignettes/articles/magic-reprex.Rmd index 18030ccc..a5dbf607 100644 --- a/vignettes/articles/magic-reprex.Rmd +++ b/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** @@ -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: @@ -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. @@ -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:

@@ -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).