R lockpvs