Dear All Is there some way of restarting R, without quitting R? In other words, I am looking for something like the commands reset (MuPAD) or restart (Maple). Thanks in advance, Paul
Restarting R without quitting R
6 messages · Uwe Ligges, Paul Smith, Adaikalavan Ramasamy +1 more
Paul Smith wrote:
Dear All Is there some way of restarting R, without quitting R? In other words, I am looking for something like the commands reset (MuPAD) or restart (Maple).
No, but of course you could write a function that fires up a new instance of R and quits the current one after that. Uwe Ligges
Thanks in advance, Paul
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On 4/23/05, Uwe Ligges <ligges at statistik.uni-dortmund.de> wrote:
Is there some way of restarting R, without quitting R? In other words, I am looking for something like the commands reset (MuPAD) or restart (Maple).
No, but of course you could write a function that fires up a new instance of R and quits the current one after that.
Thanks, Uwe. Paul
1 day later
You could try rm( list=ls() ) # to remove all objects in a session gc() # may return from R to operating system but sometimes I find it just easier to kill and start a new R session. Regards, Adai
On Sat, 2005-04-23 at 15:26 +0100, Paul Smith wrote:
Dear All Is there some way of restarting R, without quitting R? In other words, I am looking for something like the commands reset (MuPAD) or restart (Maple). Thanks in advance, Paul
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Adaikalavan Ramasamy wrote:
You could try rm( list=ls() ) # to remove all objects in a session gc() # may return from R to operating system but sometimes I find it just easier to kill and start a new R session.
There are other things that are different in a restart: It sets the search list to a default. It executes startup code from various places. BTW, I'm not sure what you mean when you say that gc() "may return from R to operating system". Duncan Murdoch
Thank you for enlightenment. Apologies, I meant to say gc() may memory to the operating system as documented by the Details section of help(gc). Regards, Adai
On Mon, 2005-04-25 at 07:05 +0100, Duncan Murdoch wrote:
Adaikalavan Ramasamy wrote:
You could try rm( list=ls() ) # to remove all objects in a session gc() # may return from R to operating system but sometimes I find it just easier to kill and start a new R session.
There are other things that are different in a restart: It sets the search list to a default. It executes startup code from various places. BTW, I'm not sure what you mean when you say that gc() "may return from R to operating system". Duncan Murdoch