Skip to content

rspm create source#

Command to create sources

rspm create source [flags]

Examples#

  rspm create source --name=[source name]
  rspm create source --name=[source name] --type=[cran-snapshot|curated-cran|curated-pypi|git|git-python|local|local-python]
  rspm create source --name=[source name] --type=curated-cran --snapshot=2017-11-07
  rspm create source --name=[source name] --type=curated-cran --include=depends,imports,linking-to,suggests --snapshot=2017-11-07
  rspm create source --name=[source name] --type=curated-cran --include=none --snapshot=2017-11-07
  rspm create source --name=[source name] --type=cran-snapshot --snapshot=2020-07-09
  rspm create source --name=[source name] --type=curated-pypi
  rspm create source --name=[source name] --type=local-python
  rspm create source --name=[source name] --type=git-python

Options#

  -h, --help                  help for source
      --include string        A comma-separated list of dependency types to include in the curated-CRAN source. Only valid for curated-CRAN sources. Valid values include 'imports', 'depends', 'linking-to', 'suggests', 'none', and 'all'. For Enhanced and Advanced licenses only. (default "imports,depends,linking-to")
      --name string           The name of the source.
      --snapshot string       The initial CRAN snapshot to use for curated-cran sources. Provide either a transaction id or a snapshot date in yyyy-mm-dd format. For Enhanced and Advanced licenses only.
      --strict                When true, uses strict mode for curated-CRAN creation. For Enhanced and Advanced licenses only.
      --succeed-on-existing   Do not return an error if source already exists
      --type string           Optional. The type of source. Must be one of cran-snapshot, curated-cran, curated-pypi, git, git-python, local, or local-python. Defaults to 'local'.

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