This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
If your contribution is large enough, you will be asked to sign the Microsoft CLA (the CLA bot will tell you if it's necessary).
-
Visual Studio 2017 Preview or at least the latest available release. You must install C++, .NET Desktop, .NET Core (currently 1.1) and VS Extensibility components (VS SDK). Release/1_0 is the last branch buildable with Visual Studio 2015. Update 3 is required.
-
MSYS2. See instructions at the R-Host submodule.
-
R 3.4.0 or later; either one of:
-
Wix Tools 3.11 (only needed if you want to build the remote services installer for Windows).
This repository uses git submodules for some of its dependencies, so you will need to clone it with --recursive
command line
switch to obtain everything that is needed for a successful build:
git clone --recursive https://github.com/Microsoft/RTVS.git
The remaining dependencies are referenced as NuGet packages, and will be automatically downloaded by VS during the build.
- Open
R.sln
solution file in Visual Studio 2017. - Set
Microsoft.VisualStudio.R.Package
as a startup project. - If you are not planning to build the installer MSI (see next section), you can also unload
SetupRemote
andSetupRHost
projects. - Build the solution. Note that this will not build
Setup
by default. - Start Debugging (F5).
- VS experimental instance should start, and you should see "R Tools" entry in the main menu.
- Build
Setup
project specifically (right-click on it in Solution Explorer and select "Build"). - Look for the MSI that it generates under
bin
. Running it will install the product.