Re: [R] R startup and shutdown question

2009-01-23 Thread Dr. S. B. Nguah
Hi, ?.First ?.Last Sammy Philip James Smith wrote: > > Hi R-Community: > > > Here is what I want to do: > > > Every time I start R I want R to: > > > 1. remove(list=ls()), and > > 2. "source" another file automatically. > > > Then, when I shutdown R, I want R to: > > > 1. remov

Re: [R] R startup and shutdown question

2009-01-23 Thread Uwe Ligges
Philip Smith wrote: Hi R-Community: Here is what I want to do: Every time I start R I want R to: 1. remove(list=ls()), and You do not need to given you start with an emty workspace, i.e. start R with: R --no-restore 2. "source" another file automatically. Write it in your RProf

[R] R startup and shutdown question

2009-01-23 Thread Philip Smith
Hi R-Community: Here is what I want to do: Every time I start R I want R to: 1. remove(list=ls()), and 2. "source" another file automatically. Then, when I shutdown R, I want R to: 1. remove(list=ls()) How do I do this? I recall vaguely that S could do this, but I don't remember exa