Skip to content

rspm update#

EnhancedAdvanced

Command to update curated-cran, curated-pypi, and cran-snapshot sources

rspm update [flags]

Examples#

  # Update Curated CRAN sources
  rspm update --source=[curated-cran source name] --file-in=requirements.txt
  rspm update --source=[curated-cran source name] --snapshot=[snapshot date] --file-in=requirements.txt
  rspm update --source=[curated-cran source name] --snapshot=[snapshot date] --file-in=requirements.txt --commit

  # Update Curated PyPI sources
  rspm update --source=[curated-pypi source name] --file-in=requirements.txt
  rspm update --source=[curated-pypi source name] --snapshot=[snapshot date] --file-in=requirements.txt
  rspm update --source=[curated-pypi source name] --snapshot=[snapshot date] --file-in=requirements.txt --commit

  # Update CRAN Snapshot sources
  rspm update --source=[cran-snapshot source name]
  rspm update --source=[cran-snapshot source name] --snapshot=[snapshot date] --commit

Options#

      --commit            Commit the updates. If unset, the command will perform a dry run.
      --csv-out string    Output the package list to a CSV file.
      --file-in string    The path to a file containing the packages to import. The file format is a requirements.txt file.
  -h, --help              help for update
      --snapshot string   The snapshot date used to locate the packages to update.
      --source string     The name of a curated-pypi or curated-cran source.

Options inherited from parent commands#

  -c, --config string          Path to config file
  -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