rspm add

Command to add packages, extensions, or plugins to sources.

Terminal
rspm add [flags]

Examples

Terminal
  rspm add --source=[source name] --path=[package path] --replace
  rspm add --source=[source name] --path=[package path 1,package path 2,...]
  rspm add --source=[source name] --file-in=[packages.csv]
  rspm add --source=[local-vsx source name] --path=[extension.vsix]
  rspm add --source=[local-plugins source name] --path=[plugin directory]
  rspm add --source=[local-plugins source name] --path=[plugin.tar.gz]
  rspm add --source=[curated-cran source name] --packages=[package1,package2,...] --include-suggests
  rspm add --source=[curated-cran source name] --packages=[package1,package2,...] --csv-out=[csvFileName.csv]
  rspm add --source=[curated-cran source name] --file-in=[csvInput.txt]
  rspm add --source=[curated-cran source name] --packages=[package1,package2,...] --snapshot=[snapshot-date] --commit

Options

Terminal
      --bioc-snapshot stringArray   Pick the Bioconductor snapshot used for CRAN dependencies of marked lines, as VERSION=DATE (for example 3.21=2025-11-12). Repeat for more versions. Applies to this run only. For curated-cran sources. Enhanced and Advanced licenses only.
      --commit                      Commit the changes. Requires the --snapshot flag. For curated-cran sources. Enhanced and Advanced licenses only.
      --csv-out string              Output the package list to a CSV file at this path. For curated-cran sources. Enhanced and Advanced licenses only.
      --file-in string              The path to a file containing the package names to import. The file format is one package name per line, no column headers. For curated-cran and local sources.
  -h, --help                        help for add
      --include-suggests            Include suggested packages. Defaults to 'false'. For curated-cran sources. Enhanced and Advanced licenses only.
      --packages strings            A comma-separated list of package names to add from CRAN. For curated-cran sources. Enhanced and Advanced licenses only.
      --path string                 A comma-separated list of paths to package, extension (.vsix), or plugin files or directories. For local sources.
      --replace                     If a package version or checksum conflict is found, replace the existing package. This flag will invalidate previously uploaded binary packages for this version. For local R and Python sources. Not allowed for a different file when the server's [Sources].AllowLocalPackageReplacement setting is false.
      --snapshot string             The snapshot date or ID for the package(s) to add. For curated-cran sources. Enhanced and Advanced licenses only.
      --source string               The name of the source.
      --succeed-on-existing         Do not return an error if the package, extension, or plugin already exists.

Options inherited from parent commands

Terminal
  -a, --address string             The address of the remote server. If not specified, the PACKAGEMANAGER_ADDRESS environment variable is used.
  -c, --config string              Path to config file
      --insecure-ssl-skip-verify   If true, skip SSL certificate validation. This reduces the security that SSL normally provides.
  -o, --output-format string       Specify the output format 'human' for human-readable output or 'json' for JSON-encoded output. (default "human")
  -v, --verbose                    Provide additional output
Back to top