[R] Error in fun(...) : couldn't find function "assignInNamespace"
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 7 08:21:07 CET 2006
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 at 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
More information about the R-help
mailing list