'How do I solve this error in evaluating the argument 'CRSobj'?

Am trying to get elevation raster using elevatr package but I keep getting this "error in evaluating the argument 'CRSobj' in selecting a method for function 'spTransform': NA"

It was originally working in my laptop with the same data but now in my desktop, I keep getting this error. What might have gone wrong?



Solution 1:[1]

This is likely an issue with package versions. Make sure elevatr, raster, rgdal, and sp are up-to-date. Lot of changes have happened in the last year or so around PROJ and this has cascaded through all of the spatial packages.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 jhollist