insightsengineering/R Image Creator

Create R images on demand, given a base R image, a set of system dependencies, and an renv lock file.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Apr 3, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: insightsengineering/r-image-creator@039f36374307d07cce2ea11d3d5456087acac634 # v1.6.3

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
image-namename of the image that will be stored into ghcrnorocker/rstudio:4.3.0
repository-ownerRepository owner (image will be pushed on ghcr/repository-owner)yes
repo-userUser access project container registry. Github variable `github.actor` can be used.yes
repo-tokenToken to access project container registry. Github variable `GITHUB_TOKEN` can be used.yes
tagCustom Image Tag/Version. Defaults to current date in the `YYYY.MM.DD` format if unspecified. no""
tag-latestTag image as `latest`nofalse
base-imageBase imagenorocker/rstudio:4.3.0
sysdepsA list of system dependencies to install on the image. This should be a comma-separated list of sysdeps. Eg: 'libxml2,adoptopenjdk-8,tcltk' Note that the sysdeps name should be OS-specific. Right now, only Debian OSes (installable via apt) are supported. noNone
renv-lock-fileA location of an renv.lock file that should be restored on the image. This can also be a remote location (i.e. a GitHub raw URL etc). noNone
description-fileA location of a package DESCRIPTION file. all specified dependencies will be installed noNone
packagesA comma-separated list of R packages that should be installed on the image. Dependencies will be fetched from the 'repos' option specified below. Can be also a remote location (i.e. a GitHub raw URL etc). Eg: 'pharmaverse/admiral,pharmaverse/admiralonco,dplyr' noNone
reposA comma-separated set of R package repository URLs that can be used for getting dependencies for the 'packages' installed. Eg: 'https://cloud.r-project.org,https://cran.r-project.org' nohttps://cloud.r-project.org
platformsA comma-separated list of platforms e.g. `linux/amd64,linux/arm64` that should be supported in Build job.' nolinux/amd64
renv-versionA renv version used to restore an environment.' no1.0.3

no outputs