library(conflicted) # first detach both package e.g. tidySEM and lavaan, Then reload them after loading the conflict package