There are several books that cover latent modeling in R. Here are some recommendations:
Latent Variable Modeling with R by E. Raykov and A. Marcoulides: This book provides a comprehensive introduction to latent variable modeling using R. It covers both exploratory and confirmatory factor analysis (CFA) as well as structural equation modeling (SEM).
Latent Variable Modeling Using R: A Step-by-Step Guide by T. Beaujean: This book is designed for readers who are new to latent variable modeling and R. It provides a step-by-step guide to conducting LVMs using the lavaan package.
Applied Longitudinal Data Analysis for Epidemiology: A Practical Guide by J. Fitzmaurice, N. Laird, and J. Ware: This book provides an introduction to longitudinal data analysis using R. It covers both traditional methods (e.g., repeated measures ANOVA) as well as more advanced methods (e.g., mixed-effects models).