[R] identify object that causes "Error in loadNamespace(name) : there is no package called ‘R.utils’"

Duncan Murdoch murdoch.duncan at gmail.com
Wed Apr 24 18:33:41 CEST 2013


On 13-04-24 11:08 AM, Liviu Andronic wrote:
> Dear Duncan,
>
>
> On Wed, Apr 24, 2013 at 3:03 PM, Duncan Murdoch
> <murdoch.duncan at gmail.com> wrote:
>> A better approach is to *never* save and load workspaces unless you know
>> exactly what is in them.  Always reply "no" to the question about saving
>> your workspace (or set that as the default).  If you accidentally end up
>> with a workspace being loaded, delete it.
>>
> I must admit that I'm a bit surprised by this. I was always under the
> impression that saving/restoring workspaces was the proper workflow in
> R. If you use R interactively (e.g., not by running scripts), how else
> would you store your data, intermediary results, etc., while working
> on a project? Am I missing something?

I think Michael and Hadley have already given good advice.  I'll just 
add one thing:  If you use R interactively, you should still be running 
scripts, just running them within an interactive session.  That way you 
have a record of what you did, and can back up (by starting over and 
running everything up to a known good spot) to make corrections.

Duncan Murdoch



More information about the R-help mailing list