[R] How do I modify sytem shell environment from within R?

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Sun May 27 04:47:35 CEST 2012


You don't, at least not for building libraries. Do it at the command line before you invoke the R commands. If you are using Cygwin, then be sure to use the Bash shell export command to set the variables.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Michael <comtech.usa at gmail.com> wrote:

>Hi all,
>
>Could you please tell me how do I modify the environment variable (as
>below), from within R session?
>
>LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mypath
>export LD_LIBRARY_PATH
>
>Thanks a lot!
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help at 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.



More information about the R-help mailing list