From xie at yihui.name  Thu May  5 04:28:24 2011
From: xie at yihui.name (Yihui Xie)
Date: Wed, 4 May 2011 21:28:24 -0500
Subject: [Rd] Wishlist: write R's bin path to the PATH variable and
 remove the version string in the installation dir under Windows
In-Reply-To: <B9218D41-237E-44DF-A2F5-A93614014434@r-project.org>
References: <BANLkTikkAsmfmyspnVF_8kXPb-4WuB4now@mail.gmail.com>
	<4DC0A88A.4070908@gmail.com>
	<BANLkTikqoxO9+5iPH9_1D0-HKVxsQG15Hw@mail.gmail.com>
	<BANLkTi=xMs8TVSpT3_SG5d7=o=YCo_TePw@mail.gmail.com>
	<BANLkTimZiR8FN3aR9T1sdzPiOjbduqWp8A@mail.gmail.com>
	<19904.63996.415478.695901@stat.math.ethz.ch>
	<BANLkTimY+2LCh9HN3mBTnndz9uqhpF5JMg@mail.gmail.com>
	<B9218D41-237E-44DF-A2F5-A93614014434@r-project.org>
Message-ID: <BANLkTikn_30PWWfuLBj65kM6hA6coKdzJg@mail.gmail.com>

1. I know there is not such a thing; that why I said "mimic" and "the
same place" ("***/R/bin" instead of "***/R/R-x.x.x/bin").

2. Yes, I never mess with the PATH variable under *nix, because R is
installed to /usr/local/bin/ (or /usr/bin/) *by default*, which is
already in the PATH variable. Otherwise extra efforts will be required
to run R as a single letter R -- this is what I wish we were able to
do under Windows.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Wed, May 4, 2011 at 12:55 PM, Simon Urbanek
<simon.urbanek at r-project.org> wrote:
> On May 4, 2011, at 12:00 PM, Yihui Xie wrote:
>
>> My suggestion was to mimic *nix systems: put the executable binaries in the same place *by default* (e.g. /usr/bin/ or /usr/local/bin).
>
> Except that there is not such thing on Windows! The closest to that is the "system" folder which is off limits for applications.
>
>
>> Why isn't the default bin path for R under *nix something like /usr/bin/R-2.13.0/?
>
> It is on some unices (and most system-wide installations in practice) - but that's beside the point. Unix has a well-defined FHS so regardless where you install R you can always put a symlink into /usr/bin or /usr/local/bin. Windows has no such conventions so Gabor's solution is pretty much what you claim to want (and note that in unix you're exactly running a batch script with its rhome embedded to start R!). Even on unix you don't mess with PATH to select the R version to use.
>



[Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows
Yihui Xie