Original package from Jeff Ryan updated it for R 3.1.0+