Skip to content

nanxstats/r-windows-paths

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

r-windows-paths

r-windows-paths

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.

Example versions

Some of the paths below are specific to the installed software version. We use these software version examples:

  • R 4.4.2
  • Rtools44
  • RStudio Desktop 2024.12.0+467

Key paths

R

R.exe and Rscript.exe for running R CMD build and R CMD check.

R release version 4.4.2:

C:\Program Files\R\R-4.4.2\bin

R-devel:

C:\Program Files\R\R-devel\bin

Rtools

C/C++/Fortran toolchain for building R and R packages from source.

Contains gcc, g++, gfortran:

C:\rtools44\x86_64-w64-mingw32.static.posix\bin

Contains Texinfo (texi2dvi, texi2pdf) required by R CMD check, and GNU Make (make) required for building R from source:

C:\rtools44\usr\bin

TinyTeX

TeX 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\windows

MiKTeX

TeX 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\x64

MiKTeX installed via standalone installer (current user):

C:\Users\%USERNAME%\AppData\Local\Programs\MiKTeX\miktex\bin\x64

Pandoc

pandoc installed via choco install pandoc or standalone installer:

C:\Users\%USERNAME%\AppData\Local\Pandoc

pandoc distributed with RStudio Desktop (installer):

C:\Program Files\RStudio\resources\app\bin\quarto\bin\tools

pandoc distributed with RStudio Desktop (zip):

C:\Users\%USERNAME%\RStudio-2024.12.0-467\resources\app\bin\quarto\bin\tools

pandoc distributed with Quarto installed via choco install quarto:

C:\ProgramData\chocolatey\lib\quarto\tools\bin\tools

pandoc distributed with Quarto installed via Quarto standalone installer:

C:\Users\%USERNAME%\AppData\Local\Programs\Quarto\bin\tools

Quarto

Quarto installed via choco install quarto:

C:\ProgramData\chocolatey\lib\quarto\tools\bin

Quarto installed via Quarto standalone installer:

C:\Users\%USERNAME%\AppData\Local\Programs\Quarto\bin

Quarto distributed with RStudio Desktop (installer):

C:\Program Files\RStudio\resources\app\bin\quarto\bin

Quarto distributed with RStudio Desktop (zip):

C:\Users\%USERNAME%\RStudio-2024.12.0-467\resources\app\bin\quarto\bin

Git

For interacting with Git repositories.

Git for Windows installed via choco install git or standalone installer:

C:\Program Files\Git\cmd

Configure and verify

  1. 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.
  2. Add relevant paths to your system’s PATH environment variable and verify the setup.

Now you should be able to use R and its associated tools from the CLI without specifying full paths.

Releases

No releases published

Packages

No packages published

Languages