Example versions · Configure and verify
R · Rtools · TinyTeX · MiKTeX · Pandoc · Quarto · Git
Essential R command-line tool paths on Windows. This information can
help setting up the PATH environment variable for seamless
command-line access.
Some of the paths below are specific to the installed software version. We use these software version examples:
- R 4.5.1
- Rtools45
- RStudio Desktop 2025.09.1+401
R.exe and Rscript.exe for running R CMD build and R CMD check.
R release version 4.5.1:
C:\Program Files\R\R-4.5.1\binR-devel:
C:\Program Files\R\R-devel\binC/C++/Fortran toolchain for building R and R packages from source.
Contains gcc, g++, gfortran:
C:\rtools45\x86_64-w64-mingw32.static.posix\binContains Texinfo (texi2dvi, texi2pdf) required by R CMD check, and
GNU Make (make) required for building R from source:
C:\rtools45\usr\binTeX distribution binaries for LaTeX support.
Contains pdflatex required by R CMD check and for building R from
source.
C:\Users\%USERNAME%\AppData\Roaming\TinyTeX\bin\windowsTeX distribution binaries for LaTeX support.
Contains pdflatex required by R CMD check and for building R from
source.
MiKTeX installed via choco install miktex or standalone installer (all
users):
C:\Program Files\MiKTeX\miktex\bin\x64MiKTeX installed via standalone installer (current user):
C:\Users\%USERNAME%\AppData\Local\Programs\MiKTeX\miktex\bin\x64pandoc installed via choco install pandoc or standalone installer:
C:\Users\%USERNAME%\AppData\Local\Pandocpandoc distributed with RStudio Desktop (installer):
C:\Program Files\RStudio\resources\app\bin\quarto\bin\toolspandoc distributed with RStudio Desktop (zip):
C:\Users\%USERNAME%\RStudio-2025.09.1-401\resources\app\bin\quarto\bin\toolspandoc distributed with Quarto installed via choco install quarto:
C:\ProgramData\chocolatey\lib\quarto\tools\bin\toolspandoc distributed with Quarto installed via Quarto standalone installer:
C:\Users\%USERNAME%\AppData\Local\Programs\Quarto\bin\toolsQuarto installed via choco install quarto:
C:\ProgramData\chocolatey\lib\quarto\tools\binQuarto installed via Quarto standalone installer:
C:\Users\%USERNAME%\AppData\Local\Programs\Quarto\binQuarto distributed with RStudio Desktop (installer):
C:\Program Files\RStudio\resources\app\bin\quarto\binQuarto distributed with RStudio Desktop (zip):
C:\Users\%USERNAME%\RStudio-2025.09.1-401\resources\app\bin\quarto\binFor interacting with Git repositories.
Git for Windows installed via choco install git or standalone
installer:
C:\Program Files\Git\cmd- Locate the paths on your system.
- Open File Explorer and navigate to the directories listed above.
- Verify that the paths exist and contain the expected executables.
- Add relevant paths to your system’s
PATHenvironment variable and verify the setup.- For a step-by-step guide with screenshots, see how to set the
PATHenvironment variable in Windows.
- For a step-by-step guide with screenshots, see how to set the
Now you should be able to use R and its associated tools from the CLI without specifying full paths.