Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion R/rthis.R
Original file line number Diff line number Diff line change
Expand Up @@ -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')}")
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion man/r.Rd

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

6 changes: 3 additions & 3 deletions vignettes/dockerfiler.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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}
---
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down
Loading