@@ -92,8 +92,6 @@ Installing a 64-bit version of [Rtools](https://cran.r-project.org/bin/windows/R
After installing `Rtools` and `CMake`, be sure the following paths are added to the environment variable `PATH`. These may have been automatically added when installing other software.
*`Rtools`
- If you have `Rtools` 3.x, example:
-`C:\Rtools\mingw_64\bin`
- If you have `Rtools` 4.0, example:
-`C:\rtools40\mingw64\bin`
-`C:\rtools40\usr\bin`
...
...
@@ -104,7 +102,7 @@ After installing `Rtools` and `CMake`, be sure the following paths are added to
* `CMake`
- example: `C:\Program Files\CMake\bin`
* `R`
- example: `C:\Program Files\R\R-3.6.1\bin`
- example: `C:\Program Files\R\R-4.5.1\bin`
NOTE: Two `Rtools` paths are required from `Rtools` 4.0 onwards because paths and the list of included software was changed in `Rtools` 4.0.
...
...
@@ -120,16 +118,6 @@ A "toolchain" refers to the collection of software used to build the library. Th
By default, the package will be built with [Visual Studio Build Tools](https://visualstudio.microsoft.com/downloads/).
**MinGW (R 3.x)**
If you are using R 3.x and installation fails with Visual Studio, `LightGBM` will fall back to using [MinGW](https://www.mingw-w64.org/) bundled with `Rtools`.
If you want to force `LightGBM` to use MinGW (for any R version), pass `--use-mingw` to the installation script.
```shell
Rscript build_r.R --use-mingw
```
**MSYS2 (R 4.x)**
If you are using R 4.x and installation fails with Visual Studio, `LightGBM` will fall back to using [MSYS2](https://www.msys2.org/). This should work with the tools already bundled in `Rtools` 4.0.