What kind of machine you running? I'm going to *guess* Linux/Ubuntu-- if not, then the rest of this may be useless. Or maybe not.
I *very* recently ran into this on an Ubuntu 15.04, which had R 3.1.2, I believe, and for some reason, I had a similar issue with phia, afex, and 4 other packages. Gang was able to point me along the road to salvation, basically by downloading the packages directly and instructing them to be installed (magically in the right spot).
I ran the following from a commandline-- I'm including a coupla comments with '#'s, and all 6 of the packages that didn't work for me, for completeness. You can run these commands from anywhere on your system, I did it from ~/Downloads. The 'R CMD INSTALL' should be able to find out where to install the R packages on your system:
# need to get 'car' for 'phia', below
# had to get **this** version as most uptodate one that would work on
# R 3.1.2 and not >=3.2.0 wget
wget [cran.r-project.org]
R CMD INSTALL car_2.0-22.tar.gz
wget [cran.r-project.org]
R CMD INSTALL phia_0.2-0.tar.gz
wget [cran.r-project.org]
R CMD INSTALL snow_0.3-13.tar.gz
wget [cran.r-project.org]
R CMD INSTALL lme4_1.1-8.tar.gz
wget [cran.r-project.org]
R CMD INSTALL afex_0.13-145.tar.gz
wget [cran.r-project.org]
R CMD INSTALL paran_1.5.1.tar.gz
wget [cran.r-project.org]
R CMD INSTALL psych_1.5.6.tar.gz
Now, of course, if you are having different troubles, then ok...
--pt
Edited 2 time(s). Last edit at 08/13/2015 10:21AM by ptaylor.