From ripley at stats.ox.ac.uk  Fri Dec 30 00:22:37 2005
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Fri, 30 Dec 2005 00:22:37 +0100 (CET)
Subject: [Rd] 'last.warning' problem at startup; package Matrix (PR#8453)
Message-ID: <20051229232237.00E3019A67@slim.kubism.ku.dk>

This *is* a bug in package Matrix and yes, bugs in packages can be bad 
enough to stop a saved image (sic) being loaded.  You could have started R 
--no-restore and load()ed it later.

Matrix has several uses of assignInNamespace in .onLoad and .onUnload, and 
that is in package utils and so not necessarily loaded.  Try loading 
Matrix with R_DEFAULT_PACKAGES=NULL to reproduce this.

R-bugs was not the appropriate place to report this, as the FAQ makes 
quite clear.

On Thu, 29 Dec 2005 winjohn at webone.com.au wrote:

> On starting an R session, I get the messages:
>
>  Fatal errir: unable to restore save data in .RData
>
>  Error in fun(...): couldn't find function "assignInNamespace"
>
>  Error: .onLoad failed in 'loadNamespace' for 'Matrix'
>
> The only object in my .RData is last.warning, thus:
>
>  > last.warning
>  $"optim or nlminb returned message false convergence (8)"
>  "LMEoptimize<-"(`*tmp*`, value = list(maxIter = 200, tolerance =
> 1.49011611938477e-08,
>      msMaxIter = 200, msVerbose = 0, niterEM = 15, EMverbose = FALSE,
>      PQLmaxIt = 30, analyticGradient = TRUE, analyticHessian = FALSE))
>
> This was generated by a call, in a previous session,to lmer()
> There may be a problem with the package Matrix, but it seems a bit
> extreme that this prevents restoration of the session.
>
> John Maindonald
> john.maindonald at anu.edu.au
>
> --please do not edit the information below--
>
> Version:
> platform = i386-pc-mingw32
> arch = i386
> os = mingw32
> system = i386, mingw32
> status =
> major = 2
> minor = 2.1
> year = 2005
> month = 12
> day = 20
> svn rev = 36812
> language = R
>
> Windows XP Home Edition (build 2600) Service Pack 2.0
>
> Locale:
> LC_COLLATE=English_Australia.1252;LC_CTYPE=English_Australia.1252;LC_MONETARY=English_Australia.1252;LC_NUMERIC=C;LC_TIME=English_Australia.1252
>
> Search Path:
> .GlobalEnv, package:methods, package:stats, package:graphics,
> package:grDevices, package:utils, package:datasets, Autoloads, package:base
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>

-- 
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



[Rd] 'last.warning' problem at startup; package Matrix (PR#8453)
ripley@stats.ox.ac.uk