#compdef rig

autoload -U is-at-least

_rig() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" : \
'*-q[Suppress output (overrides \`--verbose\`)]' \
'*--quiet[Suppress output (overrides \`--verbose\`)]' \
'*-v[Verbose output]' \
'*--verbose[Verbose output]' \
'--json[Output JSON]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help]' \
'--help[Print help]' \
'-V[Print version]' \
'--version[Print version]' \
":: :_rig_commands" \
"*::: :->RIG -- The R Installation Manager" \
&& ret=0
    case $state in
    (RIG -- The R Installation Manager)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-command-$line[1]:"
        case $line[1] in
            (config)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-config-command-$line[1]:"
        case $line[1] in
            (config-file-path)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':key -- config key to get:' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':keyvalue -- key=value pair to set:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__config__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-config-help-command-$line[1]:"
        case $line[1] in
            (config-file-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(proj)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__proj_commands" \
"*::: :->proj" \
&& ret=0

    case $state in
    (proj)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-proj-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
'-r+[R version of the project (default\: the default R version, or the current R release)]: : ' \
'--r-version=[R version of the project (default\: the default R version, or the current R release)]: : ' \
'-f[Overwrite existing project files]' \
'--force[Overwrite existing project files]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'-i+[DESCRIPTION file to import (e.g. DESCRIPTION)]: : ' \
'--input=[DESCRIPTION file to import (e.g. DESCRIPTION)]: : ' \
'-r+[R version of the project (default\: the version the DESCRIPTION file requires, the default R version, or the current R release)]: : ' \
'--r-version=[R version of the project (default\: the version the DESCRIPTION file requires, the default R version, or the current R release)]: : ' \
'--dependencies[Only merge dependencies, not metadata (the old behavior)]' \
'-f[Overwrite existing project files]' \
'--force[Overwrite existing project files]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
'-o+[Output file to write (e.g. DESCRIPTION)]: : ' \
'--output=[Output file to write (e.g. DESCRIPTION)]: : ' \
'-f[Overwrite the output file if it already exists]' \
'--force[Overwrite the output file if it already exists]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'--dev[Add as a dev (development) dependency]' \
'--no-lock[Only update rproj.toml, do not update rproj.lock]' \
'(--no-lock)--no-sync[Do not install the added packages]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package -- Packages to add, as <package> or <package>@<version>,
e.g. dplyr or '\''dplyr@>= 1.1.0'\'':' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'--no-lock[Only update rproj.toml, do not update rproj.lock]' \
'(--no-lock)--no-sync[Do not re-sync the project library]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package -- Packages to remove:' \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
'-r[Show recursive (transitive) dependencies]' \
'--recursive[Show recursive (transitive) dependencies]' \
'--json[JSON output]' \
'--dev[Include dev (development) dependencies]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
'--why=[Invert the tree\: show what pulls this package in]:PACKAGE: ' \
'--explain=[Invert the tree\: show what pulls this package in]:PACKAGE: ' \
'--dev[Include dev (development) dependencies]' \
'--no-base[Leave out R and the base packages]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(lock)
_arguments "${_arguments_options[@]}" : \
'-r+[R version(s) to solve dependencies for, comma-separated to solve for several (e.g. --r-version 4.5,4.6). Combined with --platform as a cross product, one target per combination.]: : ' \
'--r-version=[R version(s) to solve dependencies for, comma-separated to solve for several (e.g. --r-version 4.5,4.6). Combined with --platform as a cross product, one target per combination.]: : ' \
'--platform=[Platform(s) to solve binary packages for, e.g. macos, windows, ubuntu-24.04, or a full platform string like aarch64-unknown-linux-gnu-ubuntu-24.04. Comma-separated to solve for several (e.g. --platform macos,windows). Combined with --r-version as a cross product, one target per combination. Use --platform source to solve for source packages only. Default\: this machine, windows, generic glibc Linux (x86_64), and macos-arm64.]: : ' \
'*--add-platform=[Add platform(s) to the set --platform would otherwise solve for, instead of replacing it. Comma-separated, and can be repeated.]: : ' \
'--prefer-binary=[Prefer an older version that has a binary package over a newer one that does not. Optionally give how many of the newest versions to consider, e.g. --prefer-binary=5 (default\: 3).]' \
'--json[JSON output]' \
'-U[Re-resolve every dependency instead of reusing an existing rproj.lock\: re-check git/GitHub refs against their remotes, and re-run the solver for CRAN/PPM dependencies instead of keeping a pin that already satisfies rproj.toml.]' \
'--upgrade[Re-resolve every dependency instead of reusing an existing rproj.lock\: re-check git/GitHub refs against their remotes, and re-run the solver for CRAN/PPM dependencies instead of keeping a pin that already satisfies rproj.toml.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
'--max-concurrent=[Maximum number of concurrent installations (default\: number of CPU cores, see '\''concurrent-installs'\'' in '\''rig config'\'')]: : ' \
'*--group=[Also install this dependency group, in addition to the default set (main, plus dev unless --no-dev). Repeat or comma-separate for several.]:NAME: ' \
'*--extra=[Install this optional-dependency extra. Not installed by default. Repeat or comma-separate for several.]:NAME: ' \
'-r+[Which of rproj.lock'\''s targets to sync, when more than one matches this machine (default\: the highest R version). Selects among the targets already in rproj.lock, does not trigger a new solve.]: : ' \
'--r-version=[Which of rproj.lock'\''s targets to sync, when more than one matches this machine (default\: the highest R version). Selects among the targets already in rproj.lock, does not trigger a new solve.]: : ' \
'--platform=[Which of rproj.lock'\''s targets to sync, when more than one matches this machine. Selects among the targets already in rproj.lock, does not trigger a new solve.]: : ' \
'--no-install-r[Fail if the R version the lockfile needs is not installed, instead of installing it]' \
'--no-dev[Do not install the dev dependency group (default\: installed alongside main). An explicit --group dev or --all-groups installs it anyway.]' \
'--all-groups[Install every dependency group.]' \
'--all-extras[Install every optional-dependency extra.]' \
'--inexact[Do not remove packages from the library that are not in rproj.lock (default\: remove them)]' \
'--frozen[Install only from rproj.lock, without touching rproj.toml. Fails if rproj.lock does not exist, instead of creating it.]' \
'--dry-run[Show what sync would do, without installing, removing or writing anything]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(renv)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__proj__renv_commands" \
"*::: :->renv" \
&& ret=0

    case $state in
    (renv)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-proj-renv-command-$line[1]:"
        case $line[1] in
            (export)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to solve dependencies for (default\: same logic as \`rig proj lock\`)]: : ' \
'--r-version=[R version to solve dependencies for (default\: same logic as \`rig proj lock\`)]: : ' \
'--platform=[Platform to solve binary packages for, e.g. macos, windows, ubuntu-24.04 (default\: this machine). Use --platform source to solve for source packages only.]: : ' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
'-i+[renv.lock file to import (e.g. renv.lock)]: : ' \
'--input=[renv.lock file to import (e.g. renv.lock)]: : ' \
'-r+[R version of the project (default\: the version in the renv.lock file)]: : ' \
'--r-version=[R version of the project (default\: the version in the renv.lock file)]: : ' \
'--dependencies[Only merge dependencies, not metadata]' \
'-f[Overwrite existing project files]' \
'--force[Overwrite existing project files]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__proj__renv__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-proj-renv-help-command-$line[1]:"
        case $line[1] in
            (export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__proj__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-proj-help-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(lock)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(renv)
_arguments "${_arguments_options[@]}" : \
":: :_rig__proj__help__renv_commands" \
"*::: :->renv" \
&& ret=0

    case $state in
    (renv)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-proj-help-renv-command-$line[1]:"
        case $line[1] in
            (export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(pkg)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__pkg_commands" \
"*::: :->pkg" \
&& ret=0

    case $state in
    (pkg)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-pkg-command-$line[1]:"
        case $line[1] in
            (available)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'--include-archived[Also list packages CRAN has archived]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
'-v+[package version to use (default\: latest)]: : ' \
'--version=[package version to use (default\: latest)]: : ' \
'-r[Show recursive (transitive) dependencies]' \
'--recursive[Show recursive (transitive) dependencies]' \
'--dev[Include dev (development) dependencies]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- package to show the dependencies of:' \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
'-v+[package version to show (default\: latest)]: : ' \
'--version=[package version to show (default\: latest)]: : ' \
'(-v --version)--versions[List all versions of the package, instead of the details of one]' \
'(--versions)--readme[Show the README of the package, instead of its metadata]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- package to show:' \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
'-l+[Library name or path, instead of the default library]: : ' \
'--library=[Library name or path, instead of the default library]: : ' \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'--platform=[Platform to install binary packages for, e.g. macos, windows, ubuntu-24.04, or a full platform string like aarch64-unknown-linux-gnu-ubuntu-24.04 (default\: this machine). Use --platform source to install source packages only.]: : ' \
'--prefer-binary=[Prefer an older version that has a binary package over a newer one that does not. Optionally give how many of the newest versions to consider, e.g. --prefer-binary=5 (default\: 3).]' \
'--reinstall[Install the packages even if they are already up to date]' \
'--dry-run[Show what would be installed, install nothing]' \
'--dev[Include dev (development) dependencies]' \
'--ignore-unavailable[Skip dev dependencies that are not available in the repositories, instead of failing]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package -- packages to install:' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'-l+[Library name or path, instead of the default library]: : ' \
'--library=[Library name or path, instead of the default library]: : ' \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
'-l+[Library name or path, instead of the default library]: : ' \
'--library=[Library name or path, instead of the default library]: : ' \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'--force[Remove base packages as well, which R itself needs]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'*::package -- packages to remove:' \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
'-v+[package version to use (default\: latest)]: : ' \
'--version=[package version to use (default\: latest)]: : ' \
'--why=[Invert the tree\: show what pulls this package in]:PACKAGE: ' \
'--explain=[Invert the tree\: show what pulls this package in]:PACKAGE: ' \
'--dev[Include dev (development) dependencies]' \
'--no-base[Leave out R and the base packages]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- package to show the dependency tree of:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__pkg__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-pkg-help-command-$line[1]:"
        case $line[1] in
            (available)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(ppm)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__ppm_commands" \
"*::: :->ppm" \
&& ret=0

    case $state in
    (ppm)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-ppm-command-$line[1]:"
        case $line[1] in
            (builds)
_arguments "${_arguments_options[@]}" : \
'-v+[package version to list (default\: all)]: : ' \
'--version=[package version to list (default\: all)]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- package to list the builds of:' \
&& ret=0
;;
(build-log)
_arguments "${_arguments_options[@]}" : \
'-p+[P3M build target, e.g. macos, windows, jammy (see \`rig ppm builds\`); default\: the current platform]: : ' \
'--platform=[P3M build target, e.g. macos, windows, jammy (see \`rig ppm builds\`); default\: the current platform]: : ' \
'-r+[R version the build is for (default\: the default R version)]: : ' \
'--r-version=[R version the build is for (default\: the default R version)]: : ' \
'-a+[CPU architecture (default\: the current architecture)]: : ' \
'--arch=[CPU architecture (default\: the current architecture)]: : ' \
'-v+[package version (default\: latest)]: : ' \
'--version=[package version (default\: latest)]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':package -- package whose build log to show:' \
&& ret=0
;;
(platforms)
_arguments "${_arguments_options[@]}" : \
'--all[Also list the platforms P3M has retired]' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(r-versions)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__ppm__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-ppm-help-command-$line[1]:"
        case $line[1] in
            (builds)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(build-log)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(platforms)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(r-versions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(repos)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__repos_commands" \
"*::: :->repos" \
&& ret=0

    case $state in
    (repos)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-repos-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to list repositories for, instead of the default]: : ' \
'--r-version=[R version to list repositories for, instead of the default]: : ' \
'--json[JSON output]' \
'--all[Show all repositories, not just the default ones]' \
'--raw[Do not resolve \`%\` variables in repository URLs.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(available)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::name -- Repository to show in detail, e.g. '\''P3M'\'' (case insensitive):' \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to check repositories for, instead of the default]: : ' \
'--r-version=[R version to check repositories for, instead of the default]: : ' \
'--json[JSON output]' \
'--all[Check all repositories, not just the default ones]' \
'--raw[Show repository URLs without resolving \`%\` variables.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to set up repositories for (default\: all)]: : ' \
'--r-version=[R version to set up repositories for (default\: all)]: : ' \
'--with-repos=[Repositories to enable, in addition to the ones enabled by default. If --without-repos is also specified (without a value), then only these repositories will be enabled.]: : ' \
'--without-repos=[Do not set up package repositories. Alternatively, specify which ones to skip, a comma-separated list. If --with-repos is also specified, then only the repositories in that argument will be enabled.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__repos__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-repos-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(available)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(default)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- new default R version to set:' \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'--plain[plain output, only the version names, one per line]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'(--without-cran-mirror --without-p3m)--with-repos=[Repositories to enable, in addition to the ones enabled by default. If --without-repos is also specified (without a value), then only these repositories will be enabled.]: : ' \
'(--without-cran-mirror --without-p3m)--without-repos=[Do not set up package repositories. Alternatively, specify which ones to skip, a comma-separated list. If --with-repos is also specified, then only the repositories in that argument will be enabled.]' \
'--pak-version=[pak version to install.]: :(stable devel)' \
'--platform=[Install the build for this platform, instead of auto-detecting it. Use \`linux-portable\` to install a portable (glibc/musl) build.]: : ' \
'-a+[Select architecture\: arm64 or x86_64]: : ' \
'--arch=[Select architecture\: arm64 or x86_64]: : ' \
'(--with-repos --without-repos)--without-cran-mirror[Do not set the cloud CRAN mirror. Deprecated in favor of --without-repos=cran.]' \
'(--with-repos --without-repos)--without-p3m[Do not set up P3M. This is the default on macOS. Deprecated in favor of --without-repos=p3m.  \[alias\: --without-rspm\]]' \
'--without-pak[Do not install pak.]' \
'--reinstall[Reinstall, even if this R version is already installed.]' \
'--without-sysreqs[Do not set up system requirements installation.]' \
'--without-fonts[Do not download fallback fonts. rig still writes the fontconfig configuration, but R will only see the fonts that are already installed on the system.]' \
'--without-translations[Do not install translations.]' \
'--with-desktop-icon[Install a desktop icon.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::str -- R version to install:' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- versions to remove:' \
&& ret=0
;;
(self)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-self-command-$line[1]:"
        case $line[1] in
            (update)
_arguments "${_arguments_options[@]}" : \
'--dry-run[Check for a new version without downloading or installing it]' \
'--pre-release[Include pre-releases when looking for the latest version]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
'--dry-run[Show what would be removed, without removing anything]' \
'--force[Actually remove rig, instead of just showing what would be removed]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__self__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-self-help-command-$line[1]:"
        case $line[1] in
            (update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(system)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-command-$line[1]:"
        case $line[1] in
            (clean-registry)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(update-rtools40)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(rtools)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__system__rtools_commands" \
"*::: :->rtools" \
&& ret=0

    case $state in
    (rtools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-rtools-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'-a+[Architecture to install Rtools for (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--arch=[Architecture to install Rtools for (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- Rtools version to add, e.g. '\''43'\'':' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'-a+[Architecture of Rtools to remove (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--arch=[Architecture of Rtools to remove (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- versions to remove:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__system__rtools__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-rtools-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(fix-r-alias)
_arguments "${_arguments_options[@]}" : \
'--undo[Remove the block rig added to the PowerShell profile(s).]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(make-orthogonal)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to update (default\: all):' \
&& ret=0
;;
(fix-permissions)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to update (default\: all):' \
&& ret=0
;;
(no-openmp)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to update (default\: all):' \
&& ret=0
;;
(allow-debugger)
_arguments "${_arguments_options[@]}" : \
'--all[Update all R versions]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to update (default is the default R version):' \
&& ret=0
;;
(allow-debugger-rstudio)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(allow-core-dumps)
_arguments "${_arguments_options[@]}" : \
'--all[Update all R versions]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to update (default is the default R version):' \
&& ret=0
;;
(blas)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__system__blas_commands" \
"*::: :->blas" \
&& ret=0

    case $state in
    (blas)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-blas-command-$line[1]:"
        case $line[1] in
            (status)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to check (default\: all):' \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':blas -- BLAS library to use:(reference accelerate)' \
'::version -- R versions to update (default\: all):' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__system__blas__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-blas-help-command-$line[1]:"
        case $line[1] in
            (status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(forget)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(update-certs)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(user-mode)
_arguments "${_arguments_options[@]}" : \
'--no-reinstall[Do not reinstall admin-mode R versions in user mode.]' \
'--keep-install[Keep the admin-mode R installations, do not remove them.]' \
'--keep-links[Keep the admin-mode quick links, do not remove them.]' \
'--user[]' \
'--admin[]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clean-admin-r)
_arguments "${_arguments_options[@]}" : \
'--keep-install[]' \
'--keep-links[]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(detect-platform)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(dirs)
_arguments "${_arguments_options[@]}" : \
'-a+[Architecture of the R installation root (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--arch=[Architecture of the R installation root (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--json[JSON output]' \
'--r[Print the R installation root only.]' \
'--rtools[Print the Rtools installation root only.]' \
'--binary[Print the quick link directory only.]' \
'--data[Print rig'\''s data directory only.]' \
'--fonts[Print the fontconfig directory only.]' \
'--cache[Print rig'\''s cache directory only.]' \
'--download[Print rig'\''s installer download directory only.]' \
'--log[Print rig'\''s log directory only.]' \
'--library-root[Print the centralized \`rig proj\` library root only.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(make-links)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(fix-aliases)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(setup-user-lib)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions (default\: all):' \
&& ret=0
;;
(add-pak)
_arguments "${_arguments_options[@]}" : \
'--pak-version=[pak version to install.]: :(stable devel)' \
'--devel[Install the development version of pak (deprecated)]' \
'--all[Install pak for all R versions]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R versions to install/update pak for:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__system__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-help-command-$line[1]:"
        case $line[1] in
            (clean-registry)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update-rtools40)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rtools)
_arguments "${_arguments_options[@]}" : \
":: :_rig__system__help__rtools_commands" \
"*::: :->rtools" \
&& ret=0

    case $state in
    (rtools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-help-rtools-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(fix-r-alias)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(make-orthogonal)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fix-permissions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(no-openmp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-debugger)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-debugger-rstudio)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-core-dumps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(blas)
_arguments "${_arguments_options[@]}" : \
":: :_rig__system__help__blas_commands" \
"*::: :->blas" \
&& ret=0

    case $state in
    (blas)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-system-help-blas-command-$line[1]:"
        case $line[1] in
            (status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(forget)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update-certs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(user-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean-admin-r)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(detect-platform)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(dirs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(make-links)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fix-aliases)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup-user-lib)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-pak)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(rtools)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__rtools_commands" \
"*::: :->rtools" \
&& ret=0

    case $state in
    (rtools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-rtools-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'-a+[Architecture to install Rtools for (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--arch=[Architecture to install Rtools for (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- Rtools version to add, e.g. '\''43'\'':' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'-a+[Architecture of Rtools to remove (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'--arch=[Architecture of Rtools to remove (default\: native arch).]: :(x86_64 aarch64 arm64)' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- versions to remove:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__rtools__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-rtools-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(resolve)
_arguments "${_arguments_options[@]}" : \
'--platform=[Use this platform, instead of auto-detecting it.]: : ' \
'-a+[Use this architecture, instead of auto-detecting it.]: : ' \
'--arch=[Use this architecture, instead of auto-detecting it.]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':str -- symbolic version string to resolve:' \
&& ret=0
;;
(rstudio)
_arguments "${_arguments_options[@]}" : \
'--config-path[Do not start RStudio, only print the path of the RStudio config directory]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::version -- R version to start:' \
'::project-file -- RStudio project file (.Rproj) to open:' \
&& ret=0
;;
(library)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__library_commands" \
"*::: :->library" \
&& ret=0

    case $state in
    (library)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-library-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':lib-name -- name of new library:' \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
':lib-name -- name of library to remove:' \
&& ret=0
;;
(default)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to operate on, instead of the default]: : ' \
'--r-version=[R version to operate on, instead of the default]: : ' \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::lib-name -- library name to set as default:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__library__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-library-help-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(default)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(cache)
_arguments "${_arguments_options[@]}" : \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
":: :_rig__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-cache-command-$line[1]:"
        case $line[1] in
            (info)
_arguments "${_arguments_options[@]}" : \
'--json[JSON output]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
'--category=[Only delete this category of cached files]: :(built packages metadata p3m git-mirrors url-pkgs)' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__cache__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-cache-help-command-$line[1]:"
        case $line[1] in
            (info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(available)
_arguments "${_arguments_options[@]}" : \
'--platform=[Use this platform, instead of auto-detecting it.]: : ' \
'-a+[Use this architecture, instead of auto-detecting it.]: : ' \
'--arch=[Use this architecture, instead of auto-detecting it.]: : ' \
'--json[JSON output]' \
'--all[List all available versions.]' \
'(--list-rtools-versions)--list-distros[List supported Linux distributions instead of R versions.]' \
'(--list-distros)--list-rtools-versions[List available Rtools versions instead of R versions.]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
'-r+[R version to use]: : ' \
'--r-version=[R version to use]: : ' \
'(-e --eval -f --script)-t+[Explicitly specify app type to run]: :(api shiny quarto-shiny rmd-shiny quarto-static rmd-static static)' \
'(-e --eval -f --script)--app-type=[Explicitly specify app type to run]: :(api shiny quarto-shiny rmd-shiny quarto-static rmd-static static)' \
'-e+[R expression to evaluate]: : ' \
'--eval=[R expression to evaluate]: : ' \
'(-e --eval)-f+[R script file to run]: : ' \
'(-e --eval)--script=[R script file to run]: : ' \
'--no-project[Ignore the project environment, use the default R version]' \
'--dry-run[Show the command, but do not run it]' \
'--startup[Print R startup message]' \
'(--startup)--no-startup[Do not print R startup message]' \
'--echo[Print input to R]' \
'(--echo)--no-echo[Do not print input to R]' \
'(-e --eval -f --script -t --app-type --startup --no-startup --echo --no-echo)--cmd[Run \`R CMD <command>\` with the trailing arguments]' \
'(-e --eval -f --script --cmd -t --app-type)--list[List the scripts the project declares]' \
'--json[JSON output]' \
'--activate[Put the selected R version on PATH for the subprocess]' \
'(-e --eval -f --script --cmd --list -t --app-type)--shell[Run a shell instead of R, with the selected R version on PATH]' \
'(--cmd --shell)--rscript[Run with Rscript instead of R, e.g. for scripts (no echoing of input)]' \
'(--admin)--user[Run in user mode (overrides RIG_MODE and config)]' \
'--admin[Run in admin mode (overrides RIG_MODE and config)]' \
'--no-cache[Do not read or write rig'\''s cache (overrides RIG_NO_CACHE and config)]' \
'-h[Print help (see more with '\''--help'\'')]' \
'--help[Print help (see more with '\''--help'\'')]' \
'::command -- R script, project script name, project or R CMD command to run, with parameters:' \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help_commands" \
"*::: :->help" \
&& ret=0

    case $state in
    (help)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-command-$line[1]:"
        case $line[1] in
            (config)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__config_commands" \
"*::: :->config" \
&& ret=0

    case $state in
    (config)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-config-command-$line[1]:"
        case $line[1] in
            (config-file-path)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(get)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(proj)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__proj_commands" \
"*::: :->proj" \
&& ret=0

    case $state in
    (proj)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-proj-command-$line[1]:"
        case $line[1] in
            (init)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(lock)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(sync)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(renv)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__proj__renv_commands" \
"*::: :->renv" \
&& ret=0

    case $state in
    (renv)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-proj-renv-command-$line[1]:"
        case $line[1] in
            (export)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(import)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
;;
(pkg)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__pkg_commands" \
"*::: :->pkg" \
&& ret=0

    case $state in
    (pkg)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-pkg-command-$line[1]:"
        case $line[1] in
            (available)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(deps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(install)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(remove)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(tree)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(ppm)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__ppm_commands" \
"*::: :->ppm" \
&& ret=0

    case $state in
    (ppm)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-ppm-command-$line[1]:"
        case $line[1] in
            (builds)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(build-log)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(platforms)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(r-versions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(url)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(repos)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__repos_commands" \
"*::: :->repos" \
&& ret=0

    case $state in
    (repos)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-repos-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(available)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(default)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(self)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__self_commands" \
"*::: :->self" \
&& ret=0

    case $state in
    (self)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-self-command-$line[1]:"
        case $line[1] in
            (update)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(uninstall)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(system)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__system_commands" \
"*::: :->system" \
&& ret=0

    case $state in
    (system)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-system-command-$line[1]:"
        case $line[1] in
            (clean-registry)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update-rtools40)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rtools)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__system__rtools_commands" \
"*::: :->rtools" \
&& ret=0

    case $state in
    (rtools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-system-rtools-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(fix-r-alias)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(make-orthogonal)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fix-permissions)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(no-openmp)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-debugger)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-debugger-rstudio)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(allow-core-dumps)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(blas)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__system__blas_commands" \
"*::: :->blas" \
&& ret=0

    case $state in
    (blas)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-system-blas-command-$line[1]:"
        case $line[1] in
            (status)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(set)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(forget)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(update-certs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(user-mode)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean-admin-r)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(detect-platform)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(dirs)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(make-links)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(fix-aliases)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(setup-user-lib)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add-pak)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(rtools)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__rtools_commands" \
"*::: :->rtools" \
&& ret=0

    case $state in
    (rtools)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-rtools-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(resolve)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rstudio)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(library)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__library_commands" \
"*::: :->library" \
&& ret=0

    case $state in
    (library)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-library-command-$line[1]:"
        case $line[1] in
            (list)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(add)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(rm)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(default)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(cache)
_arguments "${_arguments_options[@]}" : \
":: :_rig__help__cache_commands" \
"*::: :->cache" \
&& ret=0

    case $state in
    (cache)
        words=($line[1] "${words[@]}")
        (( CURRENT += 1 ))
        curcontext="${curcontext%:*:*}:rig-help-cache-command-$line[1]:"
        case $line[1] in
            (info)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(clean)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
(available)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(run)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
(help)
_arguments "${_arguments_options[@]}" : \
&& ret=0
;;
        esac
    ;;
esac
;;
        esac
    ;;
esac
}

(( $+functions[_rig_commands] )) ||
_rig_commands() {
    local commands; commands=(
'config:Manage rig configuration' \
'proj:Manage R projects (experimental)' \
'pkg:Manage R packages (experimental)' \
'ppm:Query Posit Package Manager (experimental)' \
'repos:Manage package repositories' \
'default:Print or set default R version \[alias\: switch\]' \
'list:List installed R versions \[alias\: ls\]' \
'add:Install a new R version \[alias\: install\]' \
'rm:Remove R versions \[aliases\: del, remove, delete\]' \
'self:Manage the rig installation itself' \
'system:Manage current installations' \
'rtools:Manage Rtools installations' \
'resolve:Resolve a symbolic R version' \
'rstudio:Start RStudio with specified R version' \
'library:Manage package libraries \[alias\: lib\]' \
'cache:Manage rig'\''s download cache' \
'available:List R versions available to install.' \
'run:Run R, an R script or an R project' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig commands' commands "$@"
}
(( $+functions[_rig__add_commands] )) ||
_rig__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig add commands' commands "$@"
}
(( $+functions[_rig__available_commands] )) ||
_rig__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig available commands' commands "$@"
}
(( $+functions[_rig__cache_commands] )) ||
_rig__cache_commands() {
    local commands; commands=(
'info:Show cache size and contents' \
'clean:Delete cached files' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig cache commands' commands "$@"
}
(( $+functions[_rig__cache__clean_commands] )) ||
_rig__cache__clean_commands() {
    local commands; commands=()
    _describe -t commands 'rig cache clean commands' commands "$@"
}
(( $+functions[_rig__cache__help_commands] )) ||
_rig__cache__help_commands() {
    local commands; commands=(
'info:Show cache size and contents' \
'clean:Delete cached files' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig cache help commands' commands "$@"
}
(( $+functions[_rig__cache__help__clean_commands] )) ||
_rig__cache__help__clean_commands() {
    local commands; commands=()
    _describe -t commands 'rig cache help clean commands' commands "$@"
}
(( $+functions[_rig__cache__help__help_commands] )) ||
_rig__cache__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig cache help help commands' commands "$@"
}
(( $+functions[_rig__cache__help__info_commands] )) ||
_rig__cache__help__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig cache help info commands' commands "$@"
}
(( $+functions[_rig__cache__info_commands] )) ||
_rig__cache__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig cache info commands' commands "$@"
}
(( $+functions[_rig__config_commands] )) ||
_rig__config_commands() {
    local commands; commands=(
'config-file-path:Print the path to the rig config file' \
'list:List the names of all config entries' \
'get:Get a config entry' \
'set:Set a config entry' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig config commands' commands "$@"
}
(( $+functions[_rig__config__config-file-path_commands] )) ||
_rig__config__config-file-path_commands() {
    local commands; commands=()
    _describe -t commands 'rig config config-file-path commands' commands "$@"
}
(( $+functions[_rig__config__get_commands] )) ||
_rig__config__get_commands() {
    local commands; commands=()
    _describe -t commands 'rig config get commands' commands "$@"
}
(( $+functions[_rig__config__help_commands] )) ||
_rig__config__help_commands() {
    local commands; commands=(
'config-file-path:Print the path to the rig config file' \
'list:List the names of all config entries' \
'get:Get a config entry' \
'set:Set a config entry' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig config help commands' commands "$@"
}
(( $+functions[_rig__config__help__config-file-path_commands] )) ||
_rig__config__help__config-file-path_commands() {
    local commands; commands=()
    _describe -t commands 'rig config help config-file-path commands' commands "$@"
}
(( $+functions[_rig__config__help__get_commands] )) ||
_rig__config__help__get_commands() {
    local commands; commands=()
    _describe -t commands 'rig config help get commands' commands "$@"
}
(( $+functions[_rig__config__help__help_commands] )) ||
_rig__config__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig config help help commands' commands "$@"
}
(( $+functions[_rig__config__help__list_commands] )) ||
_rig__config__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig config help list commands' commands "$@"
}
(( $+functions[_rig__config__help__set_commands] )) ||
_rig__config__help__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig config help set commands' commands "$@"
}
(( $+functions[_rig__config__list_commands] )) ||
_rig__config__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig config list commands' commands "$@"
}
(( $+functions[_rig__config__set_commands] )) ||
_rig__config__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig config set commands' commands "$@"
}
(( $+functions[_rig__default_commands] )) ||
_rig__default_commands() {
    local commands; commands=()
    _describe -t commands 'rig default commands' commands "$@"
}
(( $+functions[_rig__help_commands] )) ||
_rig__help_commands() {
    local commands; commands=(
'config:Manage rig configuration' \
'proj:Manage R projects (experimental)' \
'pkg:Manage R packages (experimental)' \
'ppm:Query Posit Package Manager (experimental)' \
'repos:Manage package repositories' \
'default:Print or set default R version \[alias\: switch\]' \
'list:List installed R versions \[alias\: ls\]' \
'add:Install a new R version \[alias\: install\]' \
'rm:Remove R versions \[aliases\: del, remove, delete\]' \
'self:Manage the rig installation itself' \
'system:Manage current installations' \
'rtools:Manage Rtools installations' \
'resolve:Resolve a symbolic R version' \
'rstudio:Start RStudio with specified R version' \
'library:Manage package libraries \[alias\: lib\]' \
'cache:Manage rig'\''s download cache' \
'available:List R versions available to install.' \
'run:Run R, an R script or an R project' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig help commands' commands "$@"
}
(( $+functions[_rig__help__add_commands] )) ||
_rig__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig help add commands' commands "$@"
}
(( $+functions[_rig__help__available_commands] )) ||
_rig__help__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig help available commands' commands "$@"
}
(( $+functions[_rig__help__cache_commands] )) ||
_rig__help__cache_commands() {
    local commands; commands=(
'info:Show cache size and contents' \
'clean:Delete cached files' \
    )
    _describe -t commands 'rig help cache commands' commands "$@"
}
(( $+functions[_rig__help__cache__clean_commands] )) ||
_rig__help__cache__clean_commands() {
    local commands; commands=()
    _describe -t commands 'rig help cache clean commands' commands "$@"
}
(( $+functions[_rig__help__cache__info_commands] )) ||
_rig__help__cache__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig help cache info commands' commands "$@"
}
(( $+functions[_rig__help__config_commands] )) ||
_rig__help__config_commands() {
    local commands; commands=(
'config-file-path:Print the path to the rig config file' \
'list:List the names of all config entries' \
'get:Get a config entry' \
'set:Set a config entry' \
    )
    _describe -t commands 'rig help config commands' commands "$@"
}
(( $+functions[_rig__help__config__config-file-path_commands] )) ||
_rig__help__config__config-file-path_commands() {
    local commands; commands=()
    _describe -t commands 'rig help config config-file-path commands' commands "$@"
}
(( $+functions[_rig__help__config__get_commands] )) ||
_rig__help__config__get_commands() {
    local commands; commands=()
    _describe -t commands 'rig help config get commands' commands "$@"
}
(( $+functions[_rig__help__config__list_commands] )) ||
_rig__help__config__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help config list commands' commands "$@"
}
(( $+functions[_rig__help__config__set_commands] )) ||
_rig__help__config__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig help config set commands' commands "$@"
}
(( $+functions[_rig__help__default_commands] )) ||
_rig__help__default_commands() {
    local commands; commands=()
    _describe -t commands 'rig help default commands' commands "$@"
}
(( $+functions[_rig__help__help_commands] )) ||
_rig__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig help help commands' commands "$@"
}
(( $+functions[_rig__help__library_commands] )) ||
_rig__help__library_commands() {
    local commands; commands=(
'list:List libraries \[alias\: ls\]' \
'add:Add a new library' \
'rm:Remove a library' \
'default:Set the default library' \
    )
    _describe -t commands 'rig help library commands' commands "$@"
}
(( $+functions[_rig__help__library__add_commands] )) ||
_rig__help__library__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig help library add commands' commands "$@"
}
(( $+functions[_rig__help__library__default_commands] )) ||
_rig__help__library__default_commands() {
    local commands; commands=()
    _describe -t commands 'rig help library default commands' commands "$@"
}
(( $+functions[_rig__help__library__list_commands] )) ||
_rig__help__library__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help library list commands' commands "$@"
}
(( $+functions[_rig__help__library__rm_commands] )) ||
_rig__help__library__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig help library rm commands' commands "$@"
}
(( $+functions[_rig__help__list_commands] )) ||
_rig__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help list commands' commands "$@"
}
(( $+functions[_rig__help__pkg_commands] )) ||
_rig__help__pkg_commands() {
    local commands; commands=(
'available:List packages available in the R package repositories' \
'deps:Dependencies of a package in the repositories' \
'info:Information about a package in the repositories' \
'install:Install packages from the repositories' \
'list:Packages installed in a library' \
'remove:Remove packages from a library' \
'tree:Dependency tree of a package in the repositories' \
    )
    _describe -t commands 'rig help pkg commands' commands "$@"
}
(( $+functions[_rig__help__pkg__available_commands] )) ||
_rig__help__pkg__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg available commands' commands "$@"
}
(( $+functions[_rig__help__pkg__deps_commands] )) ||
_rig__help__pkg__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg deps commands' commands "$@"
}
(( $+functions[_rig__help__pkg__info_commands] )) ||
_rig__help__pkg__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg info commands' commands "$@"
}
(( $+functions[_rig__help__pkg__install_commands] )) ||
_rig__help__pkg__install_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg install commands' commands "$@"
}
(( $+functions[_rig__help__pkg__list_commands] )) ||
_rig__help__pkg__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg list commands' commands "$@"
}
(( $+functions[_rig__help__pkg__remove_commands] )) ||
_rig__help__pkg__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg remove commands' commands "$@"
}
(( $+functions[_rig__help__pkg__tree_commands] )) ||
_rig__help__pkg__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig help pkg tree commands' commands "$@"
}
(( $+functions[_rig__help__ppm_commands] )) ||
_rig__help__ppm_commands() {
    local commands; commands=(
'builds:List the published builds of a package' \
'build-log:Show the PPM build log for a package' \
'platforms:List the platforms Posit Package Manager builds for' \
'r-versions:List the R versions Posit Package Manager builds for' \
'status:Show the Posit Package Manager status report' \
'url:Print the Posit Package Manager URL' \
    )
    _describe -t commands 'rig help ppm commands' commands "$@"
}
(( $+functions[_rig__help__ppm__build-log_commands] )) ||
_rig__help__ppm__build-log_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm build-log commands' commands "$@"
}
(( $+functions[_rig__help__ppm__builds_commands] )) ||
_rig__help__ppm__builds_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm builds commands' commands "$@"
}
(( $+functions[_rig__help__ppm__platforms_commands] )) ||
_rig__help__ppm__platforms_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm platforms commands' commands "$@"
}
(( $+functions[_rig__help__ppm__r-versions_commands] )) ||
_rig__help__ppm__r-versions_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm r-versions commands' commands "$@"
}
(( $+functions[_rig__help__ppm__status_commands] )) ||
_rig__help__ppm__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm status commands' commands "$@"
}
(( $+functions[_rig__help__ppm__url_commands] )) ||
_rig__help__ppm__url_commands() {
    local commands; commands=()
    _describe -t commands 'rig help ppm url commands' commands "$@"
}
(( $+functions[_rig__help__proj_commands] )) ||
_rig__help__proj_commands() {
    local commands; commands=(
'init:Create a new R project' \
'import:Create rproj.toml from a DESCRIPTION file' \
'export:Create a DESCRIPTION file from rproj.toml' \
'add:Add dependencies to rproj.toml' \
'remove:Remove dependencies from rproj.toml' \
'deps:Show project dependencies' \
'tree:Dependency tree of a project' \
'lock:Resolve project dependencies and write rproj.lock' \
'status:Show the project'\''s status' \
'sync:Install the dependencies rproj.lock resolved' \
'renv:Interoperate with renv, R'\''s package management tool' \
    )
    _describe -t commands 'rig help proj commands' commands "$@"
}
(( $+functions[_rig__help__proj__add_commands] )) ||
_rig__help__proj__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj add commands' commands "$@"
}
(( $+functions[_rig__help__proj__deps_commands] )) ||
_rig__help__proj__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj deps commands' commands "$@"
}
(( $+functions[_rig__help__proj__export_commands] )) ||
_rig__help__proj__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj export commands' commands "$@"
}
(( $+functions[_rig__help__proj__import_commands] )) ||
_rig__help__proj__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj import commands' commands "$@"
}
(( $+functions[_rig__help__proj__init_commands] )) ||
_rig__help__proj__init_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj init commands' commands "$@"
}
(( $+functions[_rig__help__proj__lock_commands] )) ||
_rig__help__proj__lock_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj lock commands' commands "$@"
}
(( $+functions[_rig__help__proj__remove_commands] )) ||
_rig__help__proj__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj remove commands' commands "$@"
}
(( $+functions[_rig__help__proj__renv_commands] )) ||
_rig__help__proj__renv_commands() {
    local commands; commands=(
'export:Write an renv.lock file from rproj.toml' \
'import:Create rproj.toml from an renv.lock file' \
    )
    _describe -t commands 'rig help proj renv commands' commands "$@"
}
(( $+functions[_rig__help__proj__renv__export_commands] )) ||
_rig__help__proj__renv__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj renv export commands' commands "$@"
}
(( $+functions[_rig__help__proj__renv__import_commands] )) ||
_rig__help__proj__renv__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj renv import commands' commands "$@"
}
(( $+functions[_rig__help__proj__status_commands] )) ||
_rig__help__proj__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj status commands' commands "$@"
}
(( $+functions[_rig__help__proj__sync_commands] )) ||
_rig__help__proj__sync_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj sync commands' commands "$@"
}
(( $+functions[_rig__help__proj__tree_commands] )) ||
_rig__help__proj__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig help proj tree commands' commands "$@"
}
(( $+functions[_rig__help__repos_commands] )) ||
_rig__help__repos_commands() {
    local commands; commands=(
'list:List configured R package repositories' \
'available:List available R package repositories' \
'status:Check the configured R package repositories' \
'setup:Set up R package repositories' \
    )
    _describe -t commands 'rig help repos commands' commands "$@"
}
(( $+functions[_rig__help__repos__available_commands] )) ||
_rig__help__repos__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig help repos available commands' commands "$@"
}
(( $+functions[_rig__help__repos__list_commands] )) ||
_rig__help__repos__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help repos list commands' commands "$@"
}
(( $+functions[_rig__help__repos__setup_commands] )) ||
_rig__help__repos__setup_commands() {
    local commands; commands=()
    _describe -t commands 'rig help repos setup commands' commands "$@"
}
(( $+functions[_rig__help__repos__status_commands] )) ||
_rig__help__repos__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig help repos status commands' commands "$@"
}
(( $+functions[_rig__help__resolve_commands] )) ||
_rig__help__resolve_commands() {
    local commands; commands=()
    _describe -t commands 'rig help resolve commands' commands "$@"
}
(( $+functions[_rig__help__rm_commands] )) ||
_rig__help__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig help rm commands' commands "$@"
}
(( $+functions[_rig__help__rstudio_commands] )) ||
_rig__help__rstudio_commands() {
    local commands; commands=()
    _describe -t commands 'rig help rstudio commands' commands "$@"
}
(( $+functions[_rig__help__rtools_commands] )) ||
_rig__help__rtools_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
    )
    _describe -t commands 'rig help rtools commands' commands "$@"
}
(( $+functions[_rig__help__rtools__add_commands] )) ||
_rig__help__rtools__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig help rtools add commands' commands "$@"
}
(( $+functions[_rig__help__rtools__list_commands] )) ||
_rig__help__rtools__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help rtools list commands' commands "$@"
}
(( $+functions[_rig__help__rtools__rm_commands] )) ||
_rig__help__rtools__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig help rtools rm commands' commands "$@"
}
(( $+functions[_rig__help__run_commands] )) ||
_rig__help__run_commands() {
    local commands; commands=()
    _describe -t commands 'rig help run commands' commands "$@"
}
(( $+functions[_rig__help__self_commands] )) ||
_rig__help__self_commands() {
    local commands; commands=(
'update:Update rig to the latest release' \
'uninstall:Remove the rig installation' \
    )
    _describe -t commands 'rig help self commands' commands "$@"
}
(( $+functions[_rig__help__self__uninstall_commands] )) ||
_rig__help__self__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'rig help self uninstall commands' commands "$@"
}
(( $+functions[_rig__help__self__update_commands] )) ||
_rig__help__self__update_commands() {
    local commands; commands=()
    _describe -t commands 'rig help self update commands' commands "$@"
}
(( $+functions[_rig__help__system_commands] )) ||
_rig__help__system_commands() {
    local commands; commands=(
'clean-registry:Clean stale R related entries in the registry' \
'update-rtools40:Update Rtools40 MSYS2 packages' \
'rtools:Manage Rtools installations' \
'fix-r-alias:Make the '\''R'\'' command start R in PowerShell' \
'make-orthogonal:Make installed versions orthogonal' \
'fix-permissions:Restrict system library permissions to admin' \
'no-openmp:Remove OpenMP (-fopenmp) option for Apple compilers' \
'allow-debugger:Allow debugging R with lldb and gdb' \
'allow-debugger-rstudio:Allow debugging RStudio with lldb and gdb' \
'allow-core-dumps:Allow creating core dumps when R crashes' \
'blas:Manage the BLAS/LAPACK library used by R' \
'forget:Make system forget about R installations' \
'update-certs:Download the CA certificate bundle and configure R to use it' \
'user-mode:Switch to user mode and clean up admin-mode installations' \
'clean-admin-r:Remove all admin-mode R installations and links' \
'detect-platform:Detect operating system version and distribution.' \
'dirs:Print the directories rig uses' \
'make-links:Create R-* quick links' \
'fix-aliases:Fix symbolic R-* quick links' \
'setup-user-lib:Set up automatic user package libraries \[alias\: create-lib\]' \
'add-pak:Install or update pak for an R version' \
    )
    _describe -t commands 'rig help system commands' commands "$@"
}
(( $+functions[_rig__help__system__add-pak_commands] )) ||
_rig__help__system__add-pak_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system add-pak commands' commands "$@"
}
(( $+functions[_rig__help__system__allow-core-dumps_commands] )) ||
_rig__help__system__allow-core-dumps_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system allow-core-dumps commands' commands "$@"
}
(( $+functions[_rig__help__system__allow-debugger_commands] )) ||
_rig__help__system__allow-debugger_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system allow-debugger commands' commands "$@"
}
(( $+functions[_rig__help__system__allow-debugger-rstudio_commands] )) ||
_rig__help__system__allow-debugger-rstudio_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system allow-debugger-rstudio commands' commands "$@"
}
(( $+functions[_rig__help__system__blas_commands] )) ||
_rig__help__system__blas_commands() {
    local commands; commands=(
'status:Show which BLAS/LAPACK library R is using' \
'set:Switch the BLAS/LAPACK library R uses' \
    )
    _describe -t commands 'rig help system blas commands' commands "$@"
}
(( $+functions[_rig__help__system__blas__set_commands] )) ||
_rig__help__system__blas__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system blas set commands' commands "$@"
}
(( $+functions[_rig__help__system__blas__status_commands] )) ||
_rig__help__system__blas__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system blas status commands' commands "$@"
}
(( $+functions[_rig__help__system__clean-admin-r_commands] )) ||
_rig__help__system__clean-admin-r_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system clean-admin-r commands' commands "$@"
}
(( $+functions[_rig__help__system__clean-registry_commands] )) ||
_rig__help__system__clean-registry_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system clean-registry commands' commands "$@"
}
(( $+functions[_rig__help__system__detect-platform_commands] )) ||
_rig__help__system__detect-platform_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system detect-platform commands' commands "$@"
}
(( $+functions[_rig__help__system__dirs_commands] )) ||
_rig__help__system__dirs_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system dirs commands' commands "$@"
}
(( $+functions[_rig__help__system__fix-aliases_commands] )) ||
_rig__help__system__fix-aliases_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system fix-aliases commands' commands "$@"
}
(( $+functions[_rig__help__system__fix-permissions_commands] )) ||
_rig__help__system__fix-permissions_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system fix-permissions commands' commands "$@"
}
(( $+functions[_rig__help__system__fix-r-alias_commands] )) ||
_rig__help__system__fix-r-alias_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system fix-r-alias commands' commands "$@"
}
(( $+functions[_rig__help__system__forget_commands] )) ||
_rig__help__system__forget_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system forget commands' commands "$@"
}
(( $+functions[_rig__help__system__make-links_commands] )) ||
_rig__help__system__make-links_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system make-links commands' commands "$@"
}
(( $+functions[_rig__help__system__make-orthogonal_commands] )) ||
_rig__help__system__make-orthogonal_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system make-orthogonal commands' commands "$@"
}
(( $+functions[_rig__help__system__no-openmp_commands] )) ||
_rig__help__system__no-openmp_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system no-openmp commands' commands "$@"
}
(( $+functions[_rig__help__system__rtools_commands] )) ||
_rig__help__system__rtools_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
    )
    _describe -t commands 'rig help system rtools commands' commands "$@"
}
(( $+functions[_rig__help__system__rtools__add_commands] )) ||
_rig__help__system__rtools__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system rtools add commands' commands "$@"
}
(( $+functions[_rig__help__system__rtools__list_commands] )) ||
_rig__help__system__rtools__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system rtools list commands' commands "$@"
}
(( $+functions[_rig__help__system__rtools__rm_commands] )) ||
_rig__help__system__rtools__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system rtools rm commands' commands "$@"
}
(( $+functions[_rig__help__system__setup-user-lib_commands] )) ||
_rig__help__system__setup-user-lib_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system setup-user-lib commands' commands "$@"
}
(( $+functions[_rig__help__system__update-certs_commands] )) ||
_rig__help__system__update-certs_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system update-certs commands' commands "$@"
}
(( $+functions[_rig__help__system__update-rtools40_commands] )) ||
_rig__help__system__update-rtools40_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system update-rtools40 commands' commands "$@"
}
(( $+functions[_rig__help__system__user-mode_commands] )) ||
_rig__help__system__user-mode_commands() {
    local commands; commands=()
    _describe -t commands 'rig help system user-mode commands' commands "$@"
}
(( $+functions[_rig__library_commands] )) ||
_rig__library_commands() {
    local commands; commands=(
'list:List libraries \[alias\: ls\]' \
'add:Add a new library' \
'rm:Remove a library' \
'default:Set the default library' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig library commands' commands "$@"
}
(( $+functions[_rig__library__add_commands] )) ||
_rig__library__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig library add commands' commands "$@"
}
(( $+functions[_rig__library__default_commands] )) ||
_rig__library__default_commands() {
    local commands; commands=()
    _describe -t commands 'rig library default commands' commands "$@"
}
(( $+functions[_rig__library__help_commands] )) ||
_rig__library__help_commands() {
    local commands; commands=(
'list:List libraries \[alias\: ls\]' \
'add:Add a new library' \
'rm:Remove a library' \
'default:Set the default library' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig library help commands' commands "$@"
}
(( $+functions[_rig__library__help__add_commands] )) ||
_rig__library__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig library help add commands' commands "$@"
}
(( $+functions[_rig__library__help__default_commands] )) ||
_rig__library__help__default_commands() {
    local commands; commands=()
    _describe -t commands 'rig library help default commands' commands "$@"
}
(( $+functions[_rig__library__help__help_commands] )) ||
_rig__library__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig library help help commands' commands "$@"
}
(( $+functions[_rig__library__help__list_commands] )) ||
_rig__library__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig library help list commands' commands "$@"
}
(( $+functions[_rig__library__help__rm_commands] )) ||
_rig__library__help__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig library help rm commands' commands "$@"
}
(( $+functions[_rig__library__list_commands] )) ||
_rig__library__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig library list commands' commands "$@"
}
(( $+functions[_rig__library__rm_commands] )) ||
_rig__library__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig library rm commands' commands "$@"
}
(( $+functions[_rig__list_commands] )) ||
_rig__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig list commands' commands "$@"
}
(( $+functions[_rig__pkg_commands] )) ||
_rig__pkg_commands() {
    local commands; commands=(
'available:List packages available in the R package repositories' \
'deps:Dependencies of a package in the repositories' \
'info:Information about a package in the repositories' \
'install:Install packages from the repositories' \
'list:Packages installed in a library' \
'remove:Remove packages from a library' \
'tree:Dependency tree of a package in the repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig pkg commands' commands "$@"
}
(( $+functions[_rig__pkg__available_commands] )) ||
_rig__pkg__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg available commands' commands "$@"
}
(( $+functions[_rig__pkg__deps_commands] )) ||
_rig__pkg__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg deps commands' commands "$@"
}
(( $+functions[_rig__pkg__help_commands] )) ||
_rig__pkg__help_commands() {
    local commands; commands=(
'available:List packages available in the R package repositories' \
'deps:Dependencies of a package in the repositories' \
'info:Information about a package in the repositories' \
'install:Install packages from the repositories' \
'list:Packages installed in a library' \
'remove:Remove packages from a library' \
'tree:Dependency tree of a package in the repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig pkg help commands' commands "$@"
}
(( $+functions[_rig__pkg__help__available_commands] )) ||
_rig__pkg__help__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help available commands' commands "$@"
}
(( $+functions[_rig__pkg__help__deps_commands] )) ||
_rig__pkg__help__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help deps commands' commands "$@"
}
(( $+functions[_rig__pkg__help__help_commands] )) ||
_rig__pkg__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help help commands' commands "$@"
}
(( $+functions[_rig__pkg__help__info_commands] )) ||
_rig__pkg__help__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help info commands' commands "$@"
}
(( $+functions[_rig__pkg__help__install_commands] )) ||
_rig__pkg__help__install_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help install commands' commands "$@"
}
(( $+functions[_rig__pkg__help__list_commands] )) ||
_rig__pkg__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help list commands' commands "$@"
}
(( $+functions[_rig__pkg__help__remove_commands] )) ||
_rig__pkg__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help remove commands' commands "$@"
}
(( $+functions[_rig__pkg__help__tree_commands] )) ||
_rig__pkg__help__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg help tree commands' commands "$@"
}
(( $+functions[_rig__pkg__info_commands] )) ||
_rig__pkg__info_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg info commands' commands "$@"
}
(( $+functions[_rig__pkg__install_commands] )) ||
_rig__pkg__install_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg install commands' commands "$@"
}
(( $+functions[_rig__pkg__list_commands] )) ||
_rig__pkg__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg list commands' commands "$@"
}
(( $+functions[_rig__pkg__remove_commands] )) ||
_rig__pkg__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg remove commands' commands "$@"
}
(( $+functions[_rig__pkg__tree_commands] )) ||
_rig__pkg__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig pkg tree commands' commands "$@"
}
(( $+functions[_rig__ppm_commands] )) ||
_rig__ppm_commands() {
    local commands; commands=(
'builds:List the published builds of a package' \
'build-log:Show the PPM build log for a package' \
'platforms:List the platforms Posit Package Manager builds for' \
'r-versions:List the R versions Posit Package Manager builds for' \
'status:Show the Posit Package Manager status report' \
'url:Print the Posit Package Manager URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig ppm commands' commands "$@"
}
(( $+functions[_rig__ppm__build-log_commands] )) ||
_rig__ppm__build-log_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm build-log commands' commands "$@"
}
(( $+functions[_rig__ppm__builds_commands] )) ||
_rig__ppm__builds_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm builds commands' commands "$@"
}
(( $+functions[_rig__ppm__help_commands] )) ||
_rig__ppm__help_commands() {
    local commands; commands=(
'builds:List the published builds of a package' \
'build-log:Show the PPM build log for a package' \
'platforms:List the platforms Posit Package Manager builds for' \
'r-versions:List the R versions Posit Package Manager builds for' \
'status:Show the Posit Package Manager status report' \
'url:Print the Posit Package Manager URL' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig ppm help commands' commands "$@"
}
(( $+functions[_rig__ppm__help__build-log_commands] )) ||
_rig__ppm__help__build-log_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help build-log commands' commands "$@"
}
(( $+functions[_rig__ppm__help__builds_commands] )) ||
_rig__ppm__help__builds_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help builds commands' commands "$@"
}
(( $+functions[_rig__ppm__help__help_commands] )) ||
_rig__ppm__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help help commands' commands "$@"
}
(( $+functions[_rig__ppm__help__platforms_commands] )) ||
_rig__ppm__help__platforms_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help platforms commands' commands "$@"
}
(( $+functions[_rig__ppm__help__r-versions_commands] )) ||
_rig__ppm__help__r-versions_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help r-versions commands' commands "$@"
}
(( $+functions[_rig__ppm__help__status_commands] )) ||
_rig__ppm__help__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help status commands' commands "$@"
}
(( $+functions[_rig__ppm__help__url_commands] )) ||
_rig__ppm__help__url_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm help url commands' commands "$@"
}
(( $+functions[_rig__ppm__platforms_commands] )) ||
_rig__ppm__platforms_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm platforms commands' commands "$@"
}
(( $+functions[_rig__ppm__r-versions_commands] )) ||
_rig__ppm__r-versions_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm r-versions commands' commands "$@"
}
(( $+functions[_rig__ppm__status_commands] )) ||
_rig__ppm__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm status commands' commands "$@"
}
(( $+functions[_rig__ppm__url_commands] )) ||
_rig__ppm__url_commands() {
    local commands; commands=()
    _describe -t commands 'rig ppm url commands' commands "$@"
}
(( $+functions[_rig__proj_commands] )) ||
_rig__proj_commands() {
    local commands; commands=(
'init:Create a new R project' \
'import:Create rproj.toml from a DESCRIPTION file' \
'export:Create a DESCRIPTION file from rproj.toml' \
'add:Add dependencies to rproj.toml' \
'remove:Remove dependencies from rproj.toml' \
'deps:Show project dependencies' \
'tree:Dependency tree of a project' \
'lock:Resolve project dependencies and write rproj.lock' \
'status:Show the project'\''s status' \
'sync:Install the dependencies rproj.lock resolved' \
'renv:Interoperate with renv, R'\''s package management tool' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig proj commands' commands "$@"
}
(( $+functions[_rig__proj__add_commands] )) ||
_rig__proj__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj add commands' commands "$@"
}
(( $+functions[_rig__proj__deps_commands] )) ||
_rig__proj__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj deps commands' commands "$@"
}
(( $+functions[_rig__proj__export_commands] )) ||
_rig__proj__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj export commands' commands "$@"
}
(( $+functions[_rig__proj__help_commands] )) ||
_rig__proj__help_commands() {
    local commands; commands=(
'init:Create a new R project' \
'import:Create rproj.toml from a DESCRIPTION file' \
'export:Create a DESCRIPTION file from rproj.toml' \
'add:Add dependencies to rproj.toml' \
'remove:Remove dependencies from rproj.toml' \
'deps:Show project dependencies' \
'tree:Dependency tree of a project' \
'lock:Resolve project dependencies and write rproj.lock' \
'status:Show the project'\''s status' \
'sync:Install the dependencies rproj.lock resolved' \
'renv:Interoperate with renv, R'\''s package management tool' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig proj help commands' commands "$@"
}
(( $+functions[_rig__proj__help__add_commands] )) ||
_rig__proj__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help add commands' commands "$@"
}
(( $+functions[_rig__proj__help__deps_commands] )) ||
_rig__proj__help__deps_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help deps commands' commands "$@"
}
(( $+functions[_rig__proj__help__export_commands] )) ||
_rig__proj__help__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help export commands' commands "$@"
}
(( $+functions[_rig__proj__help__help_commands] )) ||
_rig__proj__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help help commands' commands "$@"
}
(( $+functions[_rig__proj__help__import_commands] )) ||
_rig__proj__help__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help import commands' commands "$@"
}
(( $+functions[_rig__proj__help__init_commands] )) ||
_rig__proj__help__init_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help init commands' commands "$@"
}
(( $+functions[_rig__proj__help__lock_commands] )) ||
_rig__proj__help__lock_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help lock commands' commands "$@"
}
(( $+functions[_rig__proj__help__remove_commands] )) ||
_rig__proj__help__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help remove commands' commands "$@"
}
(( $+functions[_rig__proj__help__renv_commands] )) ||
_rig__proj__help__renv_commands() {
    local commands; commands=(
'export:Write an renv.lock file from rproj.toml' \
'import:Create rproj.toml from an renv.lock file' \
    )
    _describe -t commands 'rig proj help renv commands' commands "$@"
}
(( $+functions[_rig__proj__help__renv__export_commands] )) ||
_rig__proj__help__renv__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help renv export commands' commands "$@"
}
(( $+functions[_rig__proj__help__renv__import_commands] )) ||
_rig__proj__help__renv__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help renv import commands' commands "$@"
}
(( $+functions[_rig__proj__help__status_commands] )) ||
_rig__proj__help__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help status commands' commands "$@"
}
(( $+functions[_rig__proj__help__sync_commands] )) ||
_rig__proj__help__sync_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help sync commands' commands "$@"
}
(( $+functions[_rig__proj__help__tree_commands] )) ||
_rig__proj__help__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj help tree commands' commands "$@"
}
(( $+functions[_rig__proj__import_commands] )) ||
_rig__proj__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj import commands' commands "$@"
}
(( $+functions[_rig__proj__init_commands] )) ||
_rig__proj__init_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj init commands' commands "$@"
}
(( $+functions[_rig__proj__lock_commands] )) ||
_rig__proj__lock_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj lock commands' commands "$@"
}
(( $+functions[_rig__proj__remove_commands] )) ||
_rig__proj__remove_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj remove commands' commands "$@"
}
(( $+functions[_rig__proj__renv_commands] )) ||
_rig__proj__renv_commands() {
    local commands; commands=(
'export:Write an renv.lock file from rproj.toml' \
'import:Create rproj.toml from an renv.lock file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig proj renv commands' commands "$@"
}
(( $+functions[_rig__proj__renv__export_commands] )) ||
_rig__proj__renv__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj renv export commands' commands "$@"
}
(( $+functions[_rig__proj__renv__help_commands] )) ||
_rig__proj__renv__help_commands() {
    local commands; commands=(
'export:Write an renv.lock file from rproj.toml' \
'import:Create rproj.toml from an renv.lock file' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig proj renv help commands' commands "$@"
}
(( $+functions[_rig__proj__renv__help__export_commands] )) ||
_rig__proj__renv__help__export_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj renv help export commands' commands "$@"
}
(( $+functions[_rig__proj__renv__help__help_commands] )) ||
_rig__proj__renv__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj renv help help commands' commands "$@"
}
(( $+functions[_rig__proj__renv__help__import_commands] )) ||
_rig__proj__renv__help__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj renv help import commands' commands "$@"
}
(( $+functions[_rig__proj__renv__import_commands] )) ||
_rig__proj__renv__import_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj renv import commands' commands "$@"
}
(( $+functions[_rig__proj__status_commands] )) ||
_rig__proj__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj status commands' commands "$@"
}
(( $+functions[_rig__proj__sync_commands] )) ||
_rig__proj__sync_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj sync commands' commands "$@"
}
(( $+functions[_rig__proj__tree_commands] )) ||
_rig__proj__tree_commands() {
    local commands; commands=()
    _describe -t commands 'rig proj tree commands' commands "$@"
}
(( $+functions[_rig__repos_commands] )) ||
_rig__repos_commands() {
    local commands; commands=(
'list:List configured R package repositories' \
'available:List available R package repositories' \
'status:Check the configured R package repositories' \
'setup:Set up R package repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig repos commands' commands "$@"
}
(( $+functions[_rig__repos__available_commands] )) ||
_rig__repos__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos available commands' commands "$@"
}
(( $+functions[_rig__repos__help_commands] )) ||
_rig__repos__help_commands() {
    local commands; commands=(
'list:List configured R package repositories' \
'available:List available R package repositories' \
'status:Check the configured R package repositories' \
'setup:Set up R package repositories' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig repos help commands' commands "$@"
}
(( $+functions[_rig__repos__help__available_commands] )) ||
_rig__repos__help__available_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos help available commands' commands "$@"
}
(( $+functions[_rig__repos__help__help_commands] )) ||
_rig__repos__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos help help commands' commands "$@"
}
(( $+functions[_rig__repos__help__list_commands] )) ||
_rig__repos__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos help list commands' commands "$@"
}
(( $+functions[_rig__repos__help__setup_commands] )) ||
_rig__repos__help__setup_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos help setup commands' commands "$@"
}
(( $+functions[_rig__repos__help__status_commands] )) ||
_rig__repos__help__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos help status commands' commands "$@"
}
(( $+functions[_rig__repos__list_commands] )) ||
_rig__repos__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos list commands' commands "$@"
}
(( $+functions[_rig__repos__setup_commands] )) ||
_rig__repos__setup_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos setup commands' commands "$@"
}
(( $+functions[_rig__repos__status_commands] )) ||
_rig__repos__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig repos status commands' commands "$@"
}
(( $+functions[_rig__resolve_commands] )) ||
_rig__resolve_commands() {
    local commands; commands=()
    _describe -t commands 'rig resolve commands' commands "$@"
}
(( $+functions[_rig__rm_commands] )) ||
_rig__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig rm commands' commands "$@"
}
(( $+functions[_rig__rstudio_commands] )) ||
_rig__rstudio_commands() {
    local commands; commands=()
    _describe -t commands 'rig rstudio commands' commands "$@"
}
(( $+functions[_rig__rtools_commands] )) ||
_rig__rtools_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig rtools commands' commands "$@"
}
(( $+functions[_rig__rtools__add_commands] )) ||
_rig__rtools__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools add commands' commands "$@"
}
(( $+functions[_rig__rtools__help_commands] )) ||
_rig__rtools__help_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig rtools help commands' commands "$@"
}
(( $+functions[_rig__rtools__help__add_commands] )) ||
_rig__rtools__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools help add commands' commands "$@"
}
(( $+functions[_rig__rtools__help__help_commands] )) ||
_rig__rtools__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools help help commands' commands "$@"
}
(( $+functions[_rig__rtools__help__list_commands] )) ||
_rig__rtools__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools help list commands' commands "$@"
}
(( $+functions[_rig__rtools__help__rm_commands] )) ||
_rig__rtools__help__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools help rm commands' commands "$@"
}
(( $+functions[_rig__rtools__list_commands] )) ||
_rig__rtools__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools list commands' commands "$@"
}
(( $+functions[_rig__rtools__rm_commands] )) ||
_rig__rtools__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig rtools rm commands' commands "$@"
}
(( $+functions[_rig__run_commands] )) ||
_rig__run_commands() {
    local commands; commands=()
    _describe -t commands 'rig run commands' commands "$@"
}
(( $+functions[_rig__self_commands] )) ||
_rig__self_commands() {
    local commands; commands=(
'update:Update rig to the latest release' \
'uninstall:Remove the rig installation' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig self commands' commands "$@"
}
(( $+functions[_rig__self__help_commands] )) ||
_rig__self__help_commands() {
    local commands; commands=(
'update:Update rig to the latest release' \
'uninstall:Remove the rig installation' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig self help commands' commands "$@"
}
(( $+functions[_rig__self__help__help_commands] )) ||
_rig__self__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig self help help commands' commands "$@"
}
(( $+functions[_rig__self__help__uninstall_commands] )) ||
_rig__self__help__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'rig self help uninstall commands' commands "$@"
}
(( $+functions[_rig__self__help__update_commands] )) ||
_rig__self__help__update_commands() {
    local commands; commands=()
    _describe -t commands 'rig self help update commands' commands "$@"
}
(( $+functions[_rig__self__uninstall_commands] )) ||
_rig__self__uninstall_commands() {
    local commands; commands=()
    _describe -t commands 'rig self uninstall commands' commands "$@"
}
(( $+functions[_rig__self__update_commands] )) ||
_rig__self__update_commands() {
    local commands; commands=()
    _describe -t commands 'rig self update commands' commands "$@"
}
(( $+functions[_rig__system_commands] )) ||
_rig__system_commands() {
    local commands; commands=(
'clean-registry:Clean stale R related entries in the registry' \
'update-rtools40:Update Rtools40 MSYS2 packages' \
'rtools:Manage Rtools installations' \
'fix-r-alias:Make the '\''R'\'' command start R in PowerShell' \
'make-orthogonal:Make installed versions orthogonal' \
'fix-permissions:Restrict system library permissions to admin' \
'no-openmp:Remove OpenMP (-fopenmp) option for Apple compilers' \
'allow-debugger:Allow debugging R with lldb and gdb' \
'allow-debugger-rstudio:Allow debugging RStudio with lldb and gdb' \
'allow-core-dumps:Allow creating core dumps when R crashes' \
'blas:Manage the BLAS/LAPACK library used by R' \
'forget:Make system forget about R installations' \
'update-certs:Download the CA certificate bundle and configure R to use it' \
'user-mode:Switch to user mode and clean up admin-mode installations' \
'clean-admin-r:Remove all admin-mode R installations and links' \
'detect-platform:Detect operating system version and distribution.' \
'dirs:Print the directories rig uses' \
'make-links:Create R-* quick links' \
'fix-aliases:Fix symbolic R-* quick links' \
'setup-user-lib:Set up automatic user package libraries \[alias\: create-lib\]' \
'add-pak:Install or update pak for an R version' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system commands' commands "$@"
}
(( $+functions[_rig__system__add-pak_commands] )) ||
_rig__system__add-pak_commands() {
    local commands; commands=()
    _describe -t commands 'rig system add-pak commands' commands "$@"
}
(( $+functions[_rig__system__allow-core-dumps_commands] )) ||
_rig__system__allow-core-dumps_commands() {
    local commands; commands=()
    _describe -t commands 'rig system allow-core-dumps commands' commands "$@"
}
(( $+functions[_rig__system__allow-debugger_commands] )) ||
_rig__system__allow-debugger_commands() {
    local commands; commands=()
    _describe -t commands 'rig system allow-debugger commands' commands "$@"
}
(( $+functions[_rig__system__allow-debugger-rstudio_commands] )) ||
_rig__system__allow-debugger-rstudio_commands() {
    local commands; commands=()
    _describe -t commands 'rig system allow-debugger-rstudio commands' commands "$@"
}
(( $+functions[_rig__system__blas_commands] )) ||
_rig__system__blas_commands() {
    local commands; commands=(
'status:Show which BLAS/LAPACK library R is using' \
'set:Switch the BLAS/LAPACK library R uses' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system blas commands' commands "$@"
}
(( $+functions[_rig__system__blas__help_commands] )) ||
_rig__system__blas__help_commands() {
    local commands; commands=(
'status:Show which BLAS/LAPACK library R is using' \
'set:Switch the BLAS/LAPACK library R uses' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system blas help commands' commands "$@"
}
(( $+functions[_rig__system__blas__help__help_commands] )) ||
_rig__system__blas__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig system blas help help commands' commands "$@"
}
(( $+functions[_rig__system__blas__help__set_commands] )) ||
_rig__system__blas__help__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig system blas help set commands' commands "$@"
}
(( $+functions[_rig__system__blas__help__status_commands] )) ||
_rig__system__blas__help__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig system blas help status commands' commands "$@"
}
(( $+functions[_rig__system__blas__set_commands] )) ||
_rig__system__blas__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig system blas set commands' commands "$@"
}
(( $+functions[_rig__system__blas__status_commands] )) ||
_rig__system__blas__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig system blas status commands' commands "$@"
}
(( $+functions[_rig__system__clean-admin-r_commands] )) ||
_rig__system__clean-admin-r_commands() {
    local commands; commands=()
    _describe -t commands 'rig system clean-admin-r commands' commands "$@"
}
(( $+functions[_rig__system__clean-registry_commands] )) ||
_rig__system__clean-registry_commands() {
    local commands; commands=()
    _describe -t commands 'rig system clean-registry commands' commands "$@"
}
(( $+functions[_rig__system__detect-platform_commands] )) ||
_rig__system__detect-platform_commands() {
    local commands; commands=()
    _describe -t commands 'rig system detect-platform commands' commands "$@"
}
(( $+functions[_rig__system__dirs_commands] )) ||
_rig__system__dirs_commands() {
    local commands; commands=()
    _describe -t commands 'rig system dirs commands' commands "$@"
}
(( $+functions[_rig__system__fix-aliases_commands] )) ||
_rig__system__fix-aliases_commands() {
    local commands; commands=()
    _describe -t commands 'rig system fix-aliases commands' commands "$@"
}
(( $+functions[_rig__system__fix-permissions_commands] )) ||
_rig__system__fix-permissions_commands() {
    local commands; commands=()
    _describe -t commands 'rig system fix-permissions commands' commands "$@"
}
(( $+functions[_rig__system__fix-r-alias_commands] )) ||
_rig__system__fix-r-alias_commands() {
    local commands; commands=()
    _describe -t commands 'rig system fix-r-alias commands' commands "$@"
}
(( $+functions[_rig__system__forget_commands] )) ||
_rig__system__forget_commands() {
    local commands; commands=()
    _describe -t commands 'rig system forget commands' commands "$@"
}
(( $+functions[_rig__system__help_commands] )) ||
_rig__system__help_commands() {
    local commands; commands=(
'clean-registry:Clean stale R related entries in the registry' \
'update-rtools40:Update Rtools40 MSYS2 packages' \
'rtools:Manage Rtools installations' \
'fix-r-alias:Make the '\''R'\'' command start R in PowerShell' \
'make-orthogonal:Make installed versions orthogonal' \
'fix-permissions:Restrict system library permissions to admin' \
'no-openmp:Remove OpenMP (-fopenmp) option for Apple compilers' \
'allow-debugger:Allow debugging R with lldb and gdb' \
'allow-debugger-rstudio:Allow debugging RStudio with lldb and gdb' \
'allow-core-dumps:Allow creating core dumps when R crashes' \
'blas:Manage the BLAS/LAPACK library used by R' \
'forget:Make system forget about R installations' \
'update-certs:Download the CA certificate bundle and configure R to use it' \
'user-mode:Switch to user mode and clean up admin-mode installations' \
'clean-admin-r:Remove all admin-mode R installations and links' \
'detect-platform:Detect operating system version and distribution.' \
'dirs:Print the directories rig uses' \
'make-links:Create R-* quick links' \
'fix-aliases:Fix symbolic R-* quick links' \
'setup-user-lib:Set up automatic user package libraries \[alias\: create-lib\]' \
'add-pak:Install or update pak for an R version' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system help commands' commands "$@"
}
(( $+functions[_rig__system__help__add-pak_commands] )) ||
_rig__system__help__add-pak_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help add-pak commands' commands "$@"
}
(( $+functions[_rig__system__help__allow-core-dumps_commands] )) ||
_rig__system__help__allow-core-dumps_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help allow-core-dumps commands' commands "$@"
}
(( $+functions[_rig__system__help__allow-debugger_commands] )) ||
_rig__system__help__allow-debugger_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help allow-debugger commands' commands "$@"
}
(( $+functions[_rig__system__help__allow-debugger-rstudio_commands] )) ||
_rig__system__help__allow-debugger-rstudio_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help allow-debugger-rstudio commands' commands "$@"
}
(( $+functions[_rig__system__help__blas_commands] )) ||
_rig__system__help__blas_commands() {
    local commands; commands=(
'status:Show which BLAS/LAPACK library R is using' \
'set:Switch the BLAS/LAPACK library R uses' \
    )
    _describe -t commands 'rig system help blas commands' commands "$@"
}
(( $+functions[_rig__system__help__blas__set_commands] )) ||
_rig__system__help__blas__set_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help blas set commands' commands "$@"
}
(( $+functions[_rig__system__help__blas__status_commands] )) ||
_rig__system__help__blas__status_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help blas status commands' commands "$@"
}
(( $+functions[_rig__system__help__clean-admin-r_commands] )) ||
_rig__system__help__clean-admin-r_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help clean-admin-r commands' commands "$@"
}
(( $+functions[_rig__system__help__clean-registry_commands] )) ||
_rig__system__help__clean-registry_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help clean-registry commands' commands "$@"
}
(( $+functions[_rig__system__help__detect-platform_commands] )) ||
_rig__system__help__detect-platform_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help detect-platform commands' commands "$@"
}
(( $+functions[_rig__system__help__dirs_commands] )) ||
_rig__system__help__dirs_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help dirs commands' commands "$@"
}
(( $+functions[_rig__system__help__fix-aliases_commands] )) ||
_rig__system__help__fix-aliases_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help fix-aliases commands' commands "$@"
}
(( $+functions[_rig__system__help__fix-permissions_commands] )) ||
_rig__system__help__fix-permissions_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help fix-permissions commands' commands "$@"
}
(( $+functions[_rig__system__help__fix-r-alias_commands] )) ||
_rig__system__help__fix-r-alias_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help fix-r-alias commands' commands "$@"
}
(( $+functions[_rig__system__help__forget_commands] )) ||
_rig__system__help__forget_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help forget commands' commands "$@"
}
(( $+functions[_rig__system__help__help_commands] )) ||
_rig__system__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help help commands' commands "$@"
}
(( $+functions[_rig__system__help__make-links_commands] )) ||
_rig__system__help__make-links_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help make-links commands' commands "$@"
}
(( $+functions[_rig__system__help__make-orthogonal_commands] )) ||
_rig__system__help__make-orthogonal_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help make-orthogonal commands' commands "$@"
}
(( $+functions[_rig__system__help__no-openmp_commands] )) ||
_rig__system__help__no-openmp_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help no-openmp commands' commands "$@"
}
(( $+functions[_rig__system__help__rtools_commands] )) ||
_rig__system__help__rtools_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
    )
    _describe -t commands 'rig system help rtools commands' commands "$@"
}
(( $+functions[_rig__system__help__rtools__add_commands] )) ||
_rig__system__help__rtools__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help rtools add commands' commands "$@"
}
(( $+functions[_rig__system__help__rtools__list_commands] )) ||
_rig__system__help__rtools__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help rtools list commands' commands "$@"
}
(( $+functions[_rig__system__help__rtools__rm_commands] )) ||
_rig__system__help__rtools__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help rtools rm commands' commands "$@"
}
(( $+functions[_rig__system__help__setup-user-lib_commands] )) ||
_rig__system__help__setup-user-lib_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help setup-user-lib commands' commands "$@"
}
(( $+functions[_rig__system__help__update-certs_commands] )) ||
_rig__system__help__update-certs_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help update-certs commands' commands "$@"
}
(( $+functions[_rig__system__help__update-rtools40_commands] )) ||
_rig__system__help__update-rtools40_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help update-rtools40 commands' commands "$@"
}
(( $+functions[_rig__system__help__user-mode_commands] )) ||
_rig__system__help__user-mode_commands() {
    local commands; commands=()
    _describe -t commands 'rig system help user-mode commands' commands "$@"
}
(( $+functions[_rig__system__make-links_commands] )) ||
_rig__system__make-links_commands() {
    local commands; commands=()
    _describe -t commands 'rig system make-links commands' commands "$@"
}
(( $+functions[_rig__system__make-orthogonal_commands] )) ||
_rig__system__make-orthogonal_commands() {
    local commands; commands=()
    _describe -t commands 'rig system make-orthogonal commands' commands "$@"
}
(( $+functions[_rig__system__no-openmp_commands] )) ||
_rig__system__no-openmp_commands() {
    local commands; commands=()
    _describe -t commands 'rig system no-openmp commands' commands "$@"
}
(( $+functions[_rig__system__rtools_commands] )) ||
_rig__system__rtools_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system rtools commands' commands "$@"
}
(( $+functions[_rig__system__rtools__add_commands] )) ||
_rig__system__rtools__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools add commands' commands "$@"
}
(( $+functions[_rig__system__rtools__help_commands] )) ||
_rig__system__rtools__help_commands() {
    local commands; commands=(
'list:List installed Rtools versions \[alias\: ls\]' \
'add:Install new Rtools version \[alias\: install\]' \
'rm:Remove rtools versions \[aliases\: del, remove, delete\]' \
'help:Print this message or the help of the given subcommand(s)' \
    )
    _describe -t commands 'rig system rtools help commands' commands "$@"
}
(( $+functions[_rig__system__rtools__help__add_commands] )) ||
_rig__system__rtools__help__add_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools help add commands' commands "$@"
}
(( $+functions[_rig__system__rtools__help__help_commands] )) ||
_rig__system__rtools__help__help_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools help help commands' commands "$@"
}
(( $+functions[_rig__system__rtools__help__list_commands] )) ||
_rig__system__rtools__help__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools help list commands' commands "$@"
}
(( $+functions[_rig__system__rtools__help__rm_commands] )) ||
_rig__system__rtools__help__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools help rm commands' commands "$@"
}
(( $+functions[_rig__system__rtools__list_commands] )) ||
_rig__system__rtools__list_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools list commands' commands "$@"
}
(( $+functions[_rig__system__rtools__rm_commands] )) ||
_rig__system__rtools__rm_commands() {
    local commands; commands=()
    _describe -t commands 'rig system rtools rm commands' commands "$@"
}
(( $+functions[_rig__system__setup-user-lib_commands] )) ||
_rig__system__setup-user-lib_commands() {
    local commands; commands=()
    _describe -t commands 'rig system setup-user-lib commands' commands "$@"
}
(( $+functions[_rig__system__update-certs_commands] )) ||
_rig__system__update-certs_commands() {
    local commands; commands=()
    _describe -t commands 'rig system update-certs commands' commands "$@"
}
(( $+functions[_rig__system__update-rtools40_commands] )) ||
_rig__system__update-rtools40_commands() {
    local commands; commands=()
    _describe -t commands 'rig system update-rtools40 commands' commands "$@"
}
(( $+functions[_rig__system__user-mode_commands] )) ||
_rig__system__user-mode_commands() {
    local commands; commands=()
    _describe -t commands 'rig system user-mode commands' commands "$@"
}

if [ "$funcstack[1]" = "_rig" ]; then
    _rig "$@"
else
    compdef _rig rig
fi
