Problem with using some R packages. Possible problem in the installation of R?

Glad it worked!

Some of the packages that are required for afex to run may have been missing or out of date on your machine. When you specify dependencies = TRUE, R downloads and installs all of these necessary pacakges. You can see the list of packages that afex requires in the "Depends" and "Imports" section of the package overview page.

For more detail and background on package dependencies, take a look at the Dependencies section of Hadley's R Packages book.

Also, if your question has been answered, then please mark the post that answered it as correct for future visitors. The link below will explain how to select a solution: