On Wed, Mar 12, 2014 at 12:10 AM, Brent <yhbr...@yahoo.com> wrote:
> Background:
>     --I already had the latest 64 bit cygwin (1.7.28) installed on my Windows 
> 7 box
>     --I am a new R user; I just installed the latest 64 bit R today (3.0.3)
>     --a coworker told me that I also need to install RTools, so, I also 
> installed the latest RTools (3.1) from
>         http://cran.r-project.org/bin/windows/Rtools/
>     --during RTools installation, I accepted all the defaults, including 
> "Cygwin DLLs"
>     --the sole additional item is that I checked to modify my PATH system env 
> var
>
> ~~~~~~~~~~
>
> So what's my concern?  That modifed PATH system env var.  After installation, 
> PATH looks like
>     c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;...;<my cygwin 64 bit path>
> So the RTools stuff is before my original cygwin path.
>
> This choice means that RTools should work just fine.
>
> ***But will it screw up my normal cygwin sessions?***
>
> In particular, if during a cygwin session a command is needed and a command 
> with that name is found in Rtools, I assume that that version will be used.  
> But it may not be the newer one expected by cygwin--could that cause problems?
>
> Warren Young's very detailed answer here
>     
> https://stackoverflow.com/questions/18329233/is-it-advisable-to-switch-from-cygwin-32bit-to-cygwin-64bit
> indicates that 32 and 64 bit cygwin do not mix well...
>
> ~~~~~~~~~~
>
> Some more info.
>
> I accepted the installer's default to include "Cygwin DLLs", even tho I 
> already had 64 bit cygwin installed, because of this note:
>
>     "The Cygwin tools have been updated to versions current as of November 
> 19, 2013. Cygwin now builds separate 32 bit and 64 bit versions; we include 
> 32 bit versions of the tools. If your system only has 64 bit Cygwin DLLs 
> installed, you will need to add our Cygwin DLLs to your path (or install the 
> 32 bit Cygwin DLLs into Cygwin)."
>     http://cran.r-project.org/bin/windows/Rtools/
>
> But while web searching this issue, I came across a contrary recommendation:
>
>     "Some of the R tools use the Cygwin DLLs, which are included.  If you 
> already have Cygwin installed, you should not install these"
>     http://cran.r-project.org/bin/windows/Rtools/Rtools.txt
>
> (That last instruction, by the way, goes back many years, at least to 2008:
>     http://www.r-bloggers.com/wp-content/uploads/2008/12/Rtools1.txt
> )
>
> So, which instruction should I follow?



I use a script that temporarily sets the paths to R and to Rtools only
when R is being used in order to avoid conflicts.   Change your path
back and grab this:

https://batchfiles.googlecode.com/svn/trunk/R.bat

or this alternative which temporarily converts the paths on the
current Windows console session only and is less automated but works
on more systems:
https://batchfiles.googlecode.com/svn/trunk/Rpathset.bat

Associated links are:

Documentation:
https://batchfiles.googlecode.com/svn/trunk/batchfiles.md

Convert documentation from markdown to PDF (optional, assumes pandoc installed):
https://batchfiles.googlecode.com/svn/trunk/make-batchfiles-pdf.bat

Home page:
https://code.google.com/p/batchfiles/

Discussion (use the sqldf discussion group for discussion):
https://groups.google.com/forum/?fromgroups#!forum/sqldf


-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to