TRUE works for the lavaan() function and wrappers, but I think you need to explicitly list your variable names (or declare them as ordered factors in your data.frame) for the lavCor() function.
POLYCHOR_R(df) from the EFA.dimensions package
The help page says this function just uses psych::polychoric().
polychoric(lsat6)
Q1 Q2 Q3 Q4 Q5
Q1 1.00
Q2 0.17 1.00
Q3 0.23 0.19 1.00
Q4 0.11 0.11 0.19 1.00
Q5 0.07 0.17 0.11 0.20 1.00
lavCor(as.data.frame(lsat6), ordered = paste0("Q", 1:5))
Q1 Q2 Q3 Q4 Q5
Q1 1.000
Q2 0.170 1.000
Q3 0.228 0.189 1.000
Q4 0.107 0.111 0.187 1.000
Q5 0.067 0.172 0.105 0.201 1.000
Terrence D. Jorgensen
Assistant Professor, Methods and Statistics
Research Institute for Child Development and Education, the University of Amsterdam