I am having trouble installing glmmADMB package and hoping to get some help here. I've talked to people I know who uses R but we couldn't figure this out.
Looks like the error is about a symbol in the directory. However, the ' is included as a default naming convention in Windows and I can't seem to change the folder name. I name my computer Vanessa and it automatically give the user folder name "Vanessa's PC". [It might not due to this error, since I have ran some other codes that included this symbol in the command.] Any suggestions or thoughts would be greatly appreciated.
This is the log I got:
install.packages("glmmADMB", + repos=c("http://glmmadmb.r-forge.r-project.org/repos", + getOption("repos")), + type="source") Installing package into ‘C:/Users/Vanessa's PC/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) trying URL 'http://glmmadmb.r-forge.r-project.org/repos/src/contrib/glmmADMB_0.8.3.3.tar.gz' Content type 'application/x-gzip' length 9391177 bytes (9.0 MB) downloaded 9.0 MB
- installing source package 'glmmADMB' ... ** R ** data * moving datasets to lazyload DB ** inst ** preparing package for lazy loading Warning: package 'MASS' was built under R version 3.4.4 ** help * installing help indices ** building package indices ** installing vignettes ** testing if installed package can be loaded * arch - i386 Error: unexpected symbol in "tools:::.test_load_package('glmmADMB', 'C:/Users/Vanessa's" Execution halted * arch - x64 Error: unexpected symbol in "tools:::.test_load_package('glmmADMB', 'C:/Users/Vanessa's" Execution halted ERROR: loading failed for 'i386', 'x64'
- removing 'C:/Users/Vanessa's PC/Documents/R/win-library/3.4/glmmADMB' Warning in install.packages : running command '"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\Vanessa's PC\Documents\R\win-library\3.4" C:\Users\VANESSA'S~1\AppData\Local\Temp\Rtmp2piXfe/downloaded_packages/glmmADMB_0.8.3.3.tar.gz' had status 1 Warning in install.packages : installation of package ‘glmmADMB’ had non-zero exit status
The downloaded source packages are in ‘C:\Users\Vanessa's PC\AppData\Local\Temp\Rtmp2piXfe\downloaded_packages’
glmmTMB
package, which is available directly from CRAN (and works as well as or better thanglmmADMB
anyway), that would probably solve your problem ... – Ben BolkerglmmTMB
can handle negative binomial distributions. (You could also post a question that describes your problems withMASS::glm.nb
;bbmle::mle2
can also be used for these problems, see stackoverflow.com/questions/40191202/… – Ben Bolker