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=arm64
Options
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 rhel10 rhel9 windows]
--dryrun Describe the downloads without saving any files.
-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.5 4.4 4.3 4.2 4.1 3.6]
--rspm-version string Your version of Posit Package Manager, e.g., 2025.09.0-7
--skip-source Optional when --include-binaries is included. Skips download package sources and only retrieves binaries.
--starting-snapshot string The starting snapshot date for the downloads. Expected format: YYYY-MM-DD.
Options inherited from parent commands
Terminal
--cache Enables caching between subsequent calls to the offline downloader (default true)
-v, --verbose Provide additional output