{
    "version": "2026.04.0-526",
    "description": "An IDE for R with console, syntax-highlighting, editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.",
    "homepage": "https://posit.co/products/open-source/rstudio/",
    "license": "AGPL-3.0-only",
    "notes": "For 32bit, please install 'versions/rstudio11",
    "depends": "r",
    "architecture": {
        "64bit": {
            "url": "https://s3.amazonaws.com/rstudio-desktop/electron/windows/RStudio-2026.04.0-526.exe#/dl.7z",
            "hash": "8b5da756394bc4ea7814bf6452374f1bf5a5cb842708336fe2aa70c69a93fe10",
            "post_install": [
                "Remove-Item \"$dir\\`$*\" -Recurse",
                "if (!(Test-Path \"$env:Appdata\\RStudio\")) {",
                "    New-Item \"$env:Appdata\\RStudio\" -ItemType Directory -Force | Out-Null",
                "}",
                "$conf = \"$env:Appdata\\RStudio\\desktop.ini\"",
                "$rpath = \"$(appdir r $global)\\current\\bin\\x64\".Replace('\\', '/')",
                "if (!(Test-Path $conf)) {",
                "    @(",
                "        '[General]'",
                "        \"RBinDir=$rpath\"",
                "    ) | Add-Content -Path $conf -Encoding UTF8 -Force",
                "}"
            ]
        }
    },
    "bin": "rstudio.exe",
    "shortcuts": [
        [
            "rstudio.exe",
            "RStudio"
        ]
    ],
    "checkver": {
        "url": "https://www.rstudio.com/wp-content/downloads.json",
        "jsonpath": "$.rstudio.open_source.stable.desktop.installer.windows.basename",
        "regex": "RStudio-([\\d.-]+).exe"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://s3.amazonaws.com/rstudio-desktop/electron/windows/RStudio-$version.exe#/dl.7z",
                "hash": {
                    "url": "https://www.rstudio.com/wp-content/downloads.json",
                    "jsonpath": "$.rstudio.open_source.stable.desktop.installer.windows.sha256"
                }
            }
        }
    }
}
