[R] 'Save Workspace' gives "recursive default argument reference" -- workaround?

Duncan Murdoch murdoch at stats.uwo.ca
Mon Feb 12 18:07:51 CET 2007


On 2/12/2007 10:20 AM, Ben Fairbank wrote:
> When signing off R or trying to save a workspace in Windows XP pro SP2,
> I receive the following error message -
> 
>  
> 
> save.image("C:\\Program Files\\R\\R-2.4.1\\Responses3.RData")
> 
>  
> 
> Error in save.image("C:\\Program Files\\R\\R-2.4.1\\Responses3.RData") :
> 
> 
>         recursive default argument reference
> 
>  
> 
> Everything else seems to work fine, and the only function I have written
> using "outer" (which I gather to be associated with this error) runs
> without problems.
> 
>  
> 
> An excursion through the list archives did not yield information
> discussing this message in connection with workspace saves.
> 
>  
> 
> Can a user suggest a workaround or alternative method to save the
> workspace before I exit R and see if restarting will cure it?

Instead of save.image(), use save() with an explicit list.  The man page 
says save.image() is equivalent to save(list = ls(all=TRUE), file = 
".RData"), so try leaving out some of your objects until you identify 
the problematic one(s).

Duncan Murdoch
> 
>  
> 
> With thanks for any suggestions,
> 
>  
> 
> Ben Fairbank
> 
>  
> 
>  
> 
>  
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list