error message using glmmadmb
(1) detach("package:glmmadmb") , or start a clean R session, before
trying to update or install (you generally can't change a package while
it's loaded; (2) I'm not sure what's up with the directory not being
writable. Usually if R finds that the package directory isn't writable
it offers to install to a different directory for you ...
What happens if you simply update.packages() [without specifying
r-forge, i.e. update your regular packages]? If not, then there's
something else funny about your R installation.
I think I would definitely try an install.packages() in a clean R
session before trying to do any more diagnosis/troubleshooting.
(glmmADMB version 0.3 is really old -- where did you get it?)
Ben Bolker
On 12-02-29 10:12 AM, RH Gibson wrote:
I have done what you suggested and here is what happened:
update.packages(repos="http://r-forge.r-project.org")
glmmADMB : Version 0.3 installed in C:/Program Files/R/R-2.14.1/library Version 0.7.2.6 available at http://r-forge.r-project.org Update (y/N/c)? y lattice : Version 0.20-0 installed in C:/Program Files/R/R-2.14.1/library Version 0.20-3 available at http://r-forge.r-project.org Update (y/N/c)? y Matrix : Version 1.0-2 installed in C:/Program Files/R/R-2.14.1/library Version 1.0-4 available at http://r-forge.r-project.org Update (y/N/c)? y Warning in install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : 'lib = "C:/Program Files/R/R-2.14.1/library"' is not writable Error in install.packages(update[instlib == l, "Package"], l, contriburl = contriburl, : unable to install packages
sessionInfo()
R version 2.14.1 (2011-12-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United Kingdom.1252 [2] LC_CTYPE=English_United Kingdom.1252 [3] LC_MONETARY=English_United Kingdom.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United Kingdom.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] glmmADMB_0.7.2.6 R2admb_0.7.5 MASS_7.3-16 loaded via a namespace (and not attached): [1] grid_2.14.1 lattice_0.20-0 nlme_3.1-102 tools_2.14.1 On Wed, February 29, 2012 2:54 pm, Ben Bolker wrote:
RH Gibson <Rachel.Gibson at ...> writes:
I am trying to use glmmadmb to build a model. Code used: m1<-glmmadmb(spdiv~nsn*Insect.type+ara*Insect.type+rap*Insect.type+ fsize+(1|Site),family="nbinom") "Site" is a categorical variable and is a factor (non numeric). I get the error message: Error in eval(expr, envir, enclos) : could not find function "Droplevels" In addition: Warning message: In is.na(rows) : is.na() applied to non-(list or vector) of type 'NULL' Can anyone tell me why I am getting this message, please?
What version are you using? This is reminiscent of a problem with a recent (but not-the-very-latest) version. Can you try update.packages(repos="http://r-forge.r-project.org") (or just reinstalling glmmADMB) or at least give the results of sessionInfo() ? Ben Bolker
_______________________________________________ R-sig-mixed-models at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models