11          
        
packageurl <- "https://cran.r-project.org/src/contrib/Archive/pbkrtest/pbkrtest_0.4-4.tar.gz" install.packages(packageurl, repos=NULL, type="source") Maybe you also need to update or reinstall package lm4 – Enrique Pérez Herrero Feb 27 at 12:44
3          
        
Just an FYI for future readers, to get @EnriquePérezHerrero 's installation code above to work, I had to install lme4 first; install.packages("lme4"), then run Enrique's code to install pbkrtest, and finally get to installing car. – coip Mar 9 at 17:45
1          
        
Thanks @EnriquePérezHerrero I also had to add argument method="curl" for this trick to work – oski86 Apr 25 at 13:27
以上内容摘自下面的链接,希望对你有用。
http://stackoverflow.com/questions/35207624/package-pbkrtest-is-not-available-for-r-version-3-2-2