Closed IndrajeetPatil closed 1 week ago
Indeed. Thanks for reporting this. I will adapt the syntax, because older versions of R are still widely used.
The code has been adapted in the github version, and lavaan should run (again) with older versions of R.
Although
DESCRIPTION
file saysR >= 3.4
, the package can't be installed on older R versions:It's because the package is using syntax introduced in
R 4.1
:https://github.com/yrosseel/lavaan/blob/cd5ec1ba89fc35871bbc5a5928491f05c07250b7/R/lav_model_h1_information.R#L761-L763