rspm-offline-downloader get cran
Advanced
Download files required to run Posit Package Manager in an air-gapped environment
Terminal
rspm-offline-downloader get cran [flags]Examples
Terminal
rspm-offline-downloader get cran --rspm-version=[Posit Package Manager version] --destination=[/path/to/destination]
# Download the R package binaries for R 4.4 and 4.5, for RHEL 9 and Windows. Both the x86_64 and arm64 architectures will be downloaded for RHEL 9.
rspm-offline-downloader get cran --rspm-version=[Posit Package Manager version] --destination=[/path/to/destination/] --include-binaries --r-versions=4.4,4.5 --distributions=rhel9,windows
# Download only the x86_64 binaries for R 4.5 on RHEL 9
rspm-offline-downloader get cran --rspm-version=[Posit Package Manager version] --destination=[/path/to/destination/] --include-binaries --r-versions=4.5 --distributions=rhel9 --architectures=x86_64
# Download only the arm64 binaries for R 4.5 on RHEL 9
rspm-offline-downloader get cran --rspm-version=[Posit Package Manager version] --destination=[/path/to/destination/] --include-binaries --r-versions=4.5 --distributions=rhel9 --architectures=arm64Options
Terminal
--architectures strings Optional when using --include-binaries. The comma-separated list of architectures to download binaries for. Valid architectures include: [x86_64 arm64]. By default, all architectures are downloaded for the applicable distributions.
--base-url string Optional. The base URL to locate files. (default "https://rspm-sync.rstudio.com")
--concurrency int Optional. The number of concurrent downloads. Must be greater than 0. Default 500. (default 500)
--destination string The destination to download files.
--distributions strings Required when using --include-binaries. The comma-separated list of distributions to download binaries for. Valid distributions include: [bookworm centos7 centos8 jammy macos manylinux_2_28 noble opensuse156 resolute rhel10 rhel9 trixie windows]
--dryrun Describe the downloads without saving any files.
--file-in string Optional. The path to a file containing the packages to import, in requirements.txt format. All dependencies of the listed packages are downloaded too, so you do not need to list them.
-h, --help help for cran
--include-binaries Optional. Run this command to download R package binaries for faster installs. Requires --r-versions and --distributions.
--outbound-proxy string Optional. URL to use for outbound HTTP(s) requests. Values may be either a complete URL or a host[:port], in which case the http scheme is assumed.
-q, --quiet Optional. Run this command with minimal output.
--r-versions strings Required when using --include-binaries. The comma-separated list of R versions to download binaries for. Valid R versions include: [4.6 4.5 4.4 4.3 4.2 3.6]
--rspm-version string Your version of Posit Package Manager, e.g., 2026.08.0
--since string Optional. Retain only the package versions that were current on or after this date (YYYY-MM-DD). Pass the same date on every run: it is the mirror's retention start, not a per-run choice. A package with no release on or after the date keeps its most recent earlier version, so nothing is dropped entirely. Overrides a --since directive in the --file-in file. Distinct from --starting-snapshot, which bounds what a run fetches rather than what the mirror keeps.
--skip-source Optional when --include-binaries is included. Skips download package sources and only retrieves binaries.
--starting-snapshot string Optional. The starting snapshot date for the downloads. Expected format: YYYY-MM-DD. Bounds what this run fetches, not what the mirror keeps: it assumes the destination already holds everything older. Cannot be combined with --file-in.Options inherited from parent commands
Terminal
--cache Enables caching between subsequent calls to the offline downloader (default true)
-v, --verbose Provide additional output