Frage im Vorstellungsgespräch bei CodeSignal

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