Sollicitatievraag bij CodeSignal

how to code CFA with R? how to distinguish predictive validity and concurrent validity?