Changed deprecated R .path.package call to replacement path.package.