[R-SIG-Mac] previous question

Simon Urbanek simon.urbanek at r-project.org
Fri Aug 25 10:18:15 CEST 2006


due to internal changes in the way R is started in the GUI, it is no  
longer possible to change the working directory *before* starting R.  
This is also due to a change made by Apple, such that the event  
telling us which directory to load comes too late (basically it's a  
chicken-and-egg problem).

Therefore the GUI starts R (incl. default initialization = loading  
workspace from home), changes the directory as desired and loads the  
workspace from that directory. This implies that the saved workspace  
in your home directory is always loaded, regardless of the desired  
starting directory. Hence it's a good idea to not save a workspace in  
home, unless you want to load some common tools every time the GUI  
gets started.

I agree that it would be possible to at least allow override the  
initial directory in the preferences and update the documentation  
correspondingly - I plan to do so ASAP.


On Aug 24, 2006, at 7:59 PM, Ryan Elmore wrote:

> Hi everybody,
> I am having the same problem as reported in Jorge Ahumada's post on
> June 1 (https://stat.ethz.ch/pipermail/r-sig-mac/2006-June/
> 002992.html) and can't find a solution.  Here is the problem in
> Jorge's words:
> ###
> Since upgrading to R 2.3  and R.app 1.16 the workspace in my home
> directory
> is always loaded independently of whether I start R.app in the home
> directory or not. For example if I type in the terminal:
> open -a R.app /someOtherDIrectory/
> The ~/.RData file is uploaded when R starts. In the system
> preferences I do
> not have checked the 'always apply' in the startup options, but my  
> home
> directory is the startup directory..This was not the usual behavior
> before..
> I am  using the latest build  (3186) of R.app
> ###
> I am using R 2.3.1 and R.app 1.16 (3198).  I would appreciate the
> gesture if anybody can help me out with this problem.  Thanks in
> advance.
> Ryan
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

More information about the R-SIG-Mac mailing list