Re: Error in fun(...) : couldn't find function "assignInNamespace"
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").