Skip to content

rspm-offline-downloader get cran#

Advanced

Download files required to run Posit Package Manager in an air-gapped environment

rspm-offline-downloader get cran [flags]

Examples#

  rspm-offline-downloader get cran --rspm-version=[Posit Package Manager version] --destination=[/path/to/destination]

Options#

      --architectures strings      Optional when using --include-binaries. The comma-separated list of architectures to download binaries for. Valid architectures include: [x86_64 arm64]
      --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 bullseye centos7 centos8 focal jammy macos noble opensuse155 opensuse156 rhel9 windows]
      --dryrun                     Describe the downloads without saving any files.
  -h, --help                       help for cran
      --include-binaries           Optional. Run this command to download R 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.4 4.3 4.2 4.1 4.0 3.6]
      --rspm-version string        Your version of Posit Package Manager, e.g., 2024.11.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#

      --cache     Enables caching between subsequent calls to the offline downloader (default true)
  -v, --verbose   Provide additional output