[R] Closing R fails

Gavin Simpson gavin.simpson at ucl.ac.uk
Thu Nov 9 13:46:03 CET 2006


On Thu, 2006-11-09 at 12:18 +0000, john seers (IFR) wrote:
>  Hello All
>  
> I cannot close R easily:
>  
> > 
> > q()
> Error in .Last() : could not find function "finalizeSession"
> > 
>  
> This seems to have started after I used the R.utils package. If I load
> the R.utils package I can close R successfully. But I do not want to
> have to do this every time I run R.

John, 

Does R close properly if you invoke R with the --vanilla flag?

I forget the best way to do this in Windows, but editing the shortcut is
one way. Right click the R shortcut, find the Target, and add --vanilla
to the end of it. You might need to enclose the whole path and command
in " ", e.g.: "C:\R\R.exe --vanilla". If I've gotten this wrong then I'm
sure a Windows user will let us know.

Your problem may be related to R loading a previous session that you
saved when exiting, where you'd used R.utils, which expects to find
R.utils loaded and throws and error when you exit because it isn't.
Running R --vanilla will stop R automatically loading the saved R
session file .RData.

HTH

G

>  
> Is there any way I can switch off /reverse this behaviour? (I have had a
> look in the archives/documentation but cannot find a solution).
>  
> 
> Thanks for any help.
>  
> 
> John Seers

-- 
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
 Gavin Simpson                 [t] +44 (0)20 7679 0522
 ECRC & ENSIS, UCL Geography,  [f] +44 (0)20 7679 0565
 Pearson Building,             [e] gavin.simpsonATNOSPAMucl.ac.uk
 Gower Street, London          [w] http://www.ucl.ac.uk/~ucfagls/
 UK. WC1E 6BT.                 [w] http://www.freshwaters.org.uk
%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%



More information about the R-help mailing list