These instructions are intended for a clean Windows-11 x64 (not ARM) machine and may not produce a successful build environment if different versions of any dependencies are already installed.
- Open an Administrator PowerShell and execute this command:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/rstudio/rstudio/main/dependencies/windows/Install-RStudio-Prereqs.ps1'))
- Wait for the script to complete
- Open Command Prompt (non-administrator); do this after running the PowerShell bootstrapping script above to pick up environment changes
- optional: if you will be making commits, configure git (your email address, name, ssh keys, etc.) make pull requests from that
cdto the location you want the repo- Clone the repro, e.g.
git clone https://github.com/rstudio/rstudio- note: if you are not a Posit employee and want to submit changes you will need to fork the repo and work against that
cd rstudio\dependencies\windowsinstall-dependencies.cmd- Wait for the script to complete
cd rstudio\src\gwtant draftor for iterative development of Java/Gwt code,ant desktop
cd rstudio\srcmkdir buildcd build..\cpp\tools\windows-dev.cmdcmake ..\cpp -GNinjaninja
- Ensure that
node.jsis installed and available on the path. It is recommended to use the same version as set in globals.cmake (root of the repo), search forRSTUDIO_NODE_VERSIONto find the current value cd rstudio\src\node\desktopnpm inpm start
This is not necessary for regular development work, but can be used to fully test your installation. This builds RStudio and bundles it up in a setup package.
In a non-administrator command prompt:
cd rstudio\package\win32make-package.bat
When done, the setup is rstudio\package\build\RStudio-99.9.9.exe.