Skip to content

rspm add#

Command to add packages to sources.

rspm add [flags]

Examples#

  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=[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#

      --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 packages 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 files. 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 sources.
      --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 package already exists.

Options inherited from parent commands#

  -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