CPA with 2 factors

#1
I have run an EFA which identified two factors. I would like to run Confirmatory Factor Analysis using R studio. I have imported SPSS data set. What steps do I need to follow in order to run the CFA?