Learn R Programming

containr

The goal of containr is to help automate the process of containerizing R projects. Its core function, generate_dockerfile(), analyzes an R project’s environment and dependencies—via renv::renv.lock—and generates a ready-to-use Dockerfile that encapsulates the computational setup. The package is designed to assist researchers in building portable and consistent workflows, ensuring that analyses can be reliably shared, archived, and rerun across systems.

Installation

You can install the development version of ‘containr’ from ‘GitHub’ with:

# install.packages("pak")
pak::pak("erwinlares/containr")
#> ✔ Updated metadata database: 7.57 MB in 9 files.
#> ℹ Updating metadata database✔ Updating metadata database ... done
#>  
#> → Will update 1 package.
#> → Will download 1 package with unknown size.
#> + containr 0.0.0.9000 → 0.1.0 

Copy Link

Version

Install

install.packages('containr')

Monthly Downloads

151

Version

0.1.1

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Erwin Lares

Last Published

September 24th, 2025

Functions in containr (0.1.1)

r_ver_exists

Check if a specific Rocker image tag exists
generate_dockerfile

Generate a reproducible Dockerfile for R projects
get_r_ver_tags

Retrieve Docker tags for a Rocker image
containr-package

containr: Containerize Your 'R' Project
.validate_file_arg

Validate a file argument