Error in fun(...) : couldn't find function "assignInNamespace"

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in fun(...) : couldn't find function "assignInNamespace"

Rick Bilonick-3
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.

Rick B.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

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

Prof Brian Ripley
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,                  [hidden email]
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

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html