[ESS] setting environment variables before starting R

Vitalie Spinu spinuvit at gmail.com
Thu Mar 27 21:22:56 CET 2014


Yes, process-environment is one way tot go but it will affect all the
processes spanned by Emacs. If you want only for R then Sys.setenv from
.Rprofile should do what you want.

   Vitalie

 >>> Ross Boylan on Thu, 27 Mar 2014 11:49:23 -0700 wrote:

 > I need to set LD_LIBRARY_PATH and PATH before invoking R.  How can I do that?

 > Reading the source it looks as if process-environment might be relevant
 > (ess-inf.el), but I'm not sure if it's just a local variable.  Also, that sounds
 > as if it affects everything, and I really want it only for R (though since
 > that's usually all I use it doesn't matter much).

 > The customization variables mentioned in the documentation seem to apply to
 > command line arguments only.

 > I guess for now I'll just use a shell and ess-remote.

 > Thanks.
 > Ross Boylan

 > ______________________________________________
 > ESS-help at r-project.org mailing list
 > https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list