sp and various other spatial packages are being phased out. Check and remove dependence on these packages.