use rpy-state in calcEEFM