check r package