rspm update#
EnhancedAdvanced
Command to update curated-cran, curated-pypi, and cran-snapshot sources.
Examples#
# Update a Curated CRAN source with packages (dry run)
rspm update --source=[curated-cran source name] --file-in=requirements.txt
rspm update --source=[curated-cran source name] --file-in=requirements.txt --snapshot=[snapshot date]
# Update a Curated CRAN source with packages (commit)
rspm update --source=[curated-cran source name] --file-in=requirements.txt --snapshot=[snapshot date] --commit
# Update a Curated CRAN source to the latest snapshot without changing packages
rspm update --source=[curated-cran source name]
rspm update --source=[curated-cran source name] --snapshot=[snapshot date] --commit
# Update a Curated PyPI source (dry run)
rspm update --source=[curated-pypi source name] --file-in=requirements.txt
rspm update --source=[curated-pypi source name] --file-in=requirements.txt --snapshot=[snapshot date]
# Update a Curated PyPI source (commit)
rspm update --source=[curated-pypi source name] --snapshot=[snapshot date] --file-in=requirements.txt --commit
# Update a CRAN Snapshot source (dry run)
rspm update --source=[cran-snapshot source name]
rspm update --source=[cran-snapshot source name] --snapshot=[snapshot date]
# Update a CRAN Snapshot source (commit)
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. Optional for dry runs.
--source string The name of a curated-cran, curated-pypi, or cran-snapshot source.
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