Step Six: Fixing your Path

After installing RTools, it’s a good idea to check your path. Step 2 showed you how to get to your path, so go to your path variable and cut and past it into a text editor. In case you need help it’s always good to have this handy. Also, if you make any mistakes you can revert.

Here is what my path looks like:

c:\Rtools\bin;

c:\Rtools\MinGW\bin;

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin;

c:\Program Files\R\R-2.13.0\bin\x64;

%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\

The order of the tools is important.  As the documentation explains:

Finally, the Rtools installer will optionally edit your PATH variable as follows:

PATH=c:\Rtools\bin;c:\Rtools\MinGW\bin;c:\R\bin;<others>

(where you will substitute appropriate directories for the ones listed
above, but please keep the path in the same order as shown. LaTeX and
the HTML Help Workshop should be installed among the "others".)

There are two things to note. First, you must have a path to Rcmd.exe.  on My system its “c:\Program Files\R\R-2.13.0\bin\x64;”  I could also provide a path to the 32 bit version. Make sure you have that in your path. Also, I need to add a path for Windows HTML Help workshop.

C:\Program Files (x86)\HTML Help Workshop;

So after editing  it looks like this.

c:\Rtools\bin;c:\Rtools\MinGW\bin;c:\Program Files (x86)\MiKTeX 2.9\miktex\bin;c:\Program Files (x86)\HTML Help Workshop;c:\Program Files\R\R-2.13.0\bin\x64;%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared\

Next, we will proceed to step 7 and restart our system. I assume this is required to update the PATH variable after changing it.

On to step 7.

  1. April 7, 2012 at 3:45 PM

    Thanks the news from your blog…

  2. Steven Mosher
    April 8, 2012 at 1:07 AM

    you are welcomed

  3. Michalis Vardakis
    December 14, 2012 at 2:29 PM

    Hi Steven,
    I have a problem with the –build command. My cmd cannot find it although I have already pathed the R/bin. I see in your path that there is also MinGW folder. However the Rtools does not install the MinGW folder. Do I have to acquire it from somewhere else?

    regards,
    Michalis

    • June 13, 2015 at 5:24 AM

      Looks like I got the same problem …

      • June 13, 2015 at 9:50 PM

        Problem solved, put the C:\R\..whateverversion\bin\i386; ” as well into Path, not only x64 one, sometime, for example in my case, RCMD file in i386 folder works, not the one in x64 folder.

  4. vishnu vardhan
    August 15, 2015 at 5:07 AM

    hiii steven,
    i am unable to install packages in r tool and unable to install rstudio so please provide me complete details installation of r and path setting and any if there are

  5. ElliotSr
    August 27, 2015 at 5:34 PM

    http://modstalker.ru/_nw/13/30683627.jpg По большому счету, моды считаются решением фанатов преобразить любимую игру в новых цветах. Изменения касаются практически всего, с чем вы сталкиваетесь при прохождении в оригинальной версии, сталкер зов припяти мод мертвый город. Только наиболее невероятное, с чем может столкнуться каждый фанат серии и пользователь нашего Сталкер портала – это постоянное обновление абсолютно новыми и оригинальными идеями со стороны независимых мододелов.

  1. June 9, 2011 at 12:20 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 43 other followers

%d bloggers like this: