title: Installation of Rtools. Can't fnd C++ compiler
body: <p>I want to use a program called Stan within R. To do so I need to install Rtools to get the C++ compiler. According to the Stan website, I am to check the box for editing path upon installation of Rtools. </p>
  
  <p>For some reason R can't seem to find the compiler.</p>
  
  <blockquote>
    <p>Sys.getenv("PATH")
    [1] "c:\Rtools\bin;c:\Rtools\mingw_64\bin;c:\Rtools\bin;c:\MiKTeX\miktex\bin;c:\R\R-3.2\bin\i386;c:\windows;c:\windows\system32;C:\Users\a3988\AppData\Local\Microsoft\WindowsApps;"</p>
    
    <p>system('g++ -v')
    Warning message:
    running command 'g++ -v' had status 127 </p>
    
    <p>Sys.which("g++")
                                       g++ 
    "c:\Rtools\mingw_64\bin\G__~1.EXE" </p>
  </blockquote>
  
  <p>Can anybody help? I am using 
  R-version: 3.4.2
  Rtools34
  Windows10</p>