Re: [R] Error in fun(...) : couldn't find function "assignInNamespace"

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 07 Feb 2006 - 18:21:07 EST

On Mon, 6 Feb 2006, Rick Bilonick wrote:

> I started my laptop, opened a shell and get this error message:
>
> R : Copyright 2005, The R Foundation for Statistical Computing
> Version 2.2.1 (2005-12-20 r36812)
> ISBN 3-900051-07-0
>
> lines deleted
>
> Error in fun(...) : couldn't find function "assignInNamespace"
> Error: .onLoad failed in 'loadNamespace' for 'Matrix'
> Fatal error: unable to restore saved data in .RData
>
> Here is some directory information:
>
> -rw-rw-r-- 1 chippy chippy 1222666 Feb 2 07:20 .RData
> -rw------- 1 chippy chippy 21897 Feb 2 07:20 .Rhistory
>
> Is .RData corrupted? I can run R in other directories.

No. You've saved a reference to the Matrix namespace, and your Matrix has references to package utils in its startup without ensure utils is loaded.

The problem is in package Matrix: it has been reported before so hopefully will be fixed soon.

For now, load R --no-restore and start with load(".RData").

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@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
Received on Tue Feb 07 18:30:50 2006

This archive was generated by hypermail 2.1.8 : Wed 08 Feb 2006 - 02:45:01 EST