Jason Osborne recently wrote a short primer on exploratory factor analysis (Best Practices in Exploratory Factor Analysis). Osborne presents SPSS syntax for many of his analysis, but as R is so much easier to use than SPSS, I have written R syntax for most of the examples in the text. (Also, see my article on EFA in R). The data for the book can be accessed here.
Here is the document of R syntax