{"id":13706999,"url":"https://github.com/rstudio/r-docker","last_synced_at":"2026-01-26T22:54:10.920Z","repository":{"id":39852672,"uuid":"172998814","full_name":"rstudio/r-docker","owner":"rstudio","description":"Docker images for R","archived":false,"fork":false,"pushed_at":"2025-02-21T23:32:48.000Z","size":360,"stargazers_count":130,"open_issues_count":7,"forks_count":25,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-02-24T10:54:18.452Z","etag":null,"topics":["package-manager"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/rstudio/r-base","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-27T22:14:56.000Z","updated_at":"2025-02-22T05:53:41.000Z","dependencies_parsed_at":"2024-04-16T22:31:17.236Z","dependency_job_id":"20927f13-b5e9-4b22-9ad6-be780145f307","html_url":"https://github.com/rstudio/r-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fr-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fr-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fr-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rstudio%2Fr-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rstudio","download_url":"https://codeload.github.com/rstudio/r-docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240738061,"owners_count":19849545,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["package-manager"],"created_at":"2024-08-02T22:01:14.569Z","updated_at":"2026-01-26T22:54:10.911Z","avatar_url":"https://github.com/rstudio.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# Posit R Docker Images\n\n\u003e [!NOTE]\n\u003e These images have moved to `posit/r-base` on Docker Hub. The images at `rstudio/r-base` will continue to be updated for now, but will be deprecated in the future.\n\n[![R Docker](https://github.com/rstudio/r-docker/actions/workflows/build.yml/badge.svg)](https://github.com/rstudio/r-docker/actions/workflows/build.yml)\n\nPosit creates and [distributes an opinionated set of R\nbinaries](https://github.com/rstudio/r-builds) for different Linux\ndistributions. These Docker images are built to use those R binaries. *The\nimages are intentionally minimal, their primary purpose is to serve as the\nbasis for other images requiring R.* \n\nFor a quick way to get started with R or RStudio, \nrefer to the [Rocker project](https://www.rocker-project.org/).\n\n\u003e *WARNING*: These images are considered experimental, and may change. They should\n\u003e not be used for strictly reproducible environments (yet!). \n\n### Sample Usage\n\nThese images can be used to execute R:\n\n```\ndocker run --rm -it posit/r-base:4.5-noble\n```\n\nThese images can also be used as the basis for other custom images. To get\nstarted, use an image as the base in a Dockerfile:\n\n```dockerfile\nFROM posit/r-base:4.5-noble\n```\n\n### Releases and Tags\n\nThe images follow these tag patterns: \n\n| Pattern | Example | Description |\n| --- | --- | --- | \n| `posit/r-base:distro` | `posit/r-base:noble` |  Base operating system + system libraries required by R. |\n| `posit/r-base:x.y.z-distro` | `posit/r-base:4.4.3-noble` | R version `x.y.z` on the specified OS |\n| `posit/r-base:x.y-distro` | `posit/r-base:4.4-noble` | Latest R version `x.y.z` on the specified OS, where the patch version `z` floats over time. For example, if R 4.4.4 is released, `posit/r-base:4.4-noble` would switch from R 4.4.3 to R 4.4.4.|\n\n\nThe following distributions are supported for both `x86_64`/`amd64` and `aarch64`/`arm64`:\n\n| Distribution  | Full Name |\n| ------------- |-----------|\n| focal         | Ubuntu 20.04 |\n| jammy         | Ubuntu 22.04 |\n| noble         | Ubuntu 24.04 |\n| bookworm      | Debian 12 |\n| trixie        | Debian 13 |\n| centos7       | CentOS 7* |\n| rockylinux8   | Rocky Linux 8 |\n| rockylinux9   | Rocky Linux 9 |\n| rockylinux10  | Rocky Linux 10 |\n| opensuse156   | openSUSE 15.6 |\n\nAll minor versions of R since 4.0 are supported, on the latest patch release.\n\nNew versions of R are added when they're available on the\n[Posit CDN](https://cdn.posit.co/r/versions.json), though there may be\nsome delay between the release of R and the release of the Docker image.\n\nNew operating systems are added on a less frequent basis. \n\n`arm64` images are not supported for CentOS 7.\n\n### What is R?\n\nR is a language and environment for statistical computing and graphics. For more information:\n\n- [R Home](https://www.r-project.org/about.html)\n- [R for Data Science](https://r4ds.had.co.nz/) \n\n### Resources\n\n- [Using Docker with R](https://solutions.posit.co/envs-pkgs/environments/docker/)\n- [Running Posit Products in Containers](https://solutions.posit.co/architecting/docker/) \n\n### Support\n\nPosit does not provide professional support for these images or the R\nlanguage. The best place to ask questions and provide feedback is the [Posit\nCommunity](https://community.rstudio.com/).\n\n### License\n\nView license information for [R](https://www.r-project.org/Licenses/).\n\n\n---\n\n## Developer Resources\n\nThe following section contains information for those wishing to build these\nimages themselves.\n\nIn general, the structure consists of the following:\n\n- `base`: Base images that start with a minimal OS and add the necessary system\n  requirements required by R.\n- `x.y`: Images for each major.minor version of R. These images start from the\n  `base` images and add R, copied from the RStudio CDN. \n\n\n### Building Images\n\n```bash\n# Build and test all images\nmake\n\n# Build and test images for a specific R version\nmake VERSIONS=4.4\n\n# Build and test images for a specific distro\nmake VARIANTS=noble\n\n# Build a specific image\nmake build-4.4-noble\n# Build a specific patch version\nmake build-4.4.3-noble\n\n# Test a specific image\nmake test-4.4-noble\n# Test a specific patch version\nmake test-4.4.3-noble\n\n# Build and test all images, including historic patch versions\nmake INCLUDE_PATCH_VERSIONS=yes\n```\n\n### Updating Images\n\n1. Update [`update.sh`](update.sh) and [`Makefile`](Makefile) with the new distro or R version\n2. Update [`README.md`](README.md)\n3. Create a new /base/\u003cdistro\u003e/Dockerfile\n4. Generate new Dockerfiles:\n    ```bash\n    make update-all\n\n    # Or, using Docker\n    make update-all-docker\n    ```\n5. Build and test the new images locally\n6. Submit a pull request\n\n### Rebuilding Images\n\nRebuild images when the R build has been updated but there are no Dockerfile or base image changes.\nThis ignores the Docker cache and reinstalls R in the image.\n\n```bash\n# rebuild all images\nmake rebuild-all\n\n# Rebuild a specific image.\nmake rebuild-4.4-noble\n```\n\n### Publishing Images\n\nSee [`build.yml`](https://github.com/rstudio/r-docker/actions/workflows/build.yml) for the GitHub Actions workflow that builds these images.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fr-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frstudio%2Fr-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frstudio%2Fr-docker/lists"}