Using expm in packages