[Rd] Wishlist: write R's bin path to the PATH variable and remove the version string in the installation dir under Windows
Yihui Xie
xie at yihui.name
Wed May 4 07:04:04 CEST 2011
Thanks! But I'm sorry this is not what I wanted. I just hope we can
call R as a command like we do under *nix -- this will make it easier
for *other* software packages to find R.
BTW, for the cmd package: if we were "evil" enough, we can directly
execute this in R to permanently set the PATH variable:
system(paste('setx PATH "', normalizePath(R.home('bin')), ';',
Sys.getenv('PATH'), '"', sep = ''))
Nobody will feel comfortable with it, though.
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 Tue, May 3, 2011 at 11:41 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
>
> Although I have some misgivings about this just to be sure we have all
> based covered I have placed an R package called cmd in the batchfiles
> download area (go to http://batchfiles.googlecode.com and click on
> download tab).
>
> Install the package and then every time you wish to use R.exe,
> Rscript.exe, etc. start up R and run
>
> library(cmd)
> cmd32() # or cmd64()
>
> and it will spawn a Windows console session with the appropriate path
> variable set.
>
> --
> Statistics & Software Consulting
> GKX Group, GKX Associates Inc.
> tel: 1-877-GKX-GROUP
> email: ggrothendieck at gmail.com
>
More information about the R-devel
mailing list