From 2f69435858c8384702df15ba3159743f00157811 Mon Sep 17 00:00:00 2001 From: Vincent Guyader Date: Tue, 12 May 2026 10:01:37 +0200 Subject: [PATCH] docs: fold in Copilot's #115 review nits + restore lost VignetteIndexEntry #115 was merged from commit 437c48a, before the 2dcdc73 force-push that fixed the vignette index entry, so that fix was lost; this restores it. Plus the three Copilot inline comments on #115: - `vignettes/dockerfiler.Rmd`: section heading "Create a Dockerfile from an renv.lock" -> "... from a renv.lock" (article). - `R/rthis.R` `@examples`, `vignettes/dockerfiler.Rmd` "Basic workflow" chunk, `README.Rmd`: the illustrative `install.packages(..., repos = "http://cran.irsn.fr/")` now uses the canonical HTTPS CRAN mirror `https://cloud.r-project.org` instead of a plaintext-HTTP regional mirror. - restored `%\VignetteIndexEntry{Getting started with dockerfiler}` so it matches the vignette's YAML `title:` (silences the rmarkdown title-mismatch warning). regenerated `man/r.Rd`; re-knit `README.md`. No code-logic change. `devtools::test()` on the touched test file: 0 failures. Vignette renders clean. No en/em-dashes in source. --- R/rthis.R | 2 +- README.Rmd | 2 +- README.md | 2 +- man/r.Rd | 2 +- vignettes/dockerfiler.Rmd | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/R/rthis.R b/R/rthis.R index 2f2f4d9..06847e3 100644 --- a/R/rthis.R +++ b/R/rthis.R @@ -12,7 +12,7 @@ #' #' @examples #' r(print("yeay")) -#' r(install.packages("plumber", repos = "http://cran.irsn.fr/")) +#' r(install.packages("plumber", repos = "https://cloud.r-project.org")) r <- function(code) { code <- paste(trimws(deparse(substitute(code))), collapse = " ") glue("R -e {shQuote(code, type = 'sh')}") diff --git a/README.Rmd b/README.Rmd index db6d4c6..7585483 100644 --- a/README.Rmd +++ b/README.Rmd @@ -73,7 +73,7 @@ my_dock$COMMENT("Install required R package.") Wrap your raw R Code inside the `r()` function to turn it into a bash command with `R -e`. ```{r} -my_dock$RUN(r(install.packages("attempt", repos = "http://cran.irsn.fr/"))) +my_dock$RUN(r(install.packages("attempt", repos = "https://cloud.r-project.org"))) ``` Classical Docker stuffs: diff --git a/README.md b/README.md index ce8dbe2..846e551 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ Wrap your raw R Code inside the `r()` function to turn it into a bash command with `R -e`. ``` r -my_dock$RUN(r(install.packages("attempt", repos = "http://cran.irsn.fr/"))) +my_dock$RUN(r(install.packages("attempt", repos = "https://cloud.r-project.org"))) ``` Classical Docker stuffs: diff --git a/man/r.Rd b/man/r.Rd index c313716..b818541 100644 --- a/man/r.Rd +++ b/man/r.Rd @@ -20,5 +20,5 @@ shell-quoted \verb{R -e '...'} string, suitable for a \link{Dockerfile} } \examples{ r(print("yeay")) -r(install.packages("plumber", repos = "http://cran.irsn.fr/")) +r(install.packages("plumber", repos = "https://cloud.r-project.org")) } diff --git a/vignettes/dockerfiler.Rmd b/vignettes/dockerfiler.Rmd index 834dc2f..3326196 100644 --- a/vignettes/dockerfiler.Rmd +++ b/vignettes/dockerfiler.Rmd @@ -4,7 +4,7 @@ author: "Colin Fay" date: "`r Sys.Date()`" output: rmarkdown::html_vignette vignette: > - %\VignetteIndexEntry{getting_started} + %\VignetteIndexEntry{Getting started with dockerfiler} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8} --- @@ -53,7 +53,7 @@ my_dock$MAINTAINER("Colin FAY", "contact@colinfay.me") Wrap your raw R Code inside the `r()` function to turn it into a bash command with `R -e`. ```{r} -my_dock$RUN(r(install.packages("attempt", repos = "http://cran.irsn.fr/"))) +my_dock$RUN(r(install.packages("attempt", repos = "https://cloud.r-project.org"))) ``` Classical Docker stuffs: @@ -131,7 +131,7 @@ pulls Linux binaries from Posit Public Package Manager (`https://p3m.dev/cran/latest`). Pass `FROM = "rocker/r-base"` or `repos = c(CRAN = "https://cran.rstudio.com/")` to opt out. -## Create a Dockerfile from an renv.lock +## Create a Dockerfile from a renv.lock If your project uses `{renv}`, `dock_from_renv()` turns the `renv.lock` into a Dockerfile that restores the exact pinned versions.