'CoordinatorCleaner. Error on project4string

So, I´m cleaning my coordinates but I can't understand where I'm going wrong with this.

flags_spatial <- CoordinateCleaner::clean_coordinates(
x = occ_data_na, 
species = "species",
lon = "lon", 
lat = "lat",
tests = c("capitals", 
          "centroids", 
          "duplicates", 
          "equal",
          "gbif", 
          "institutions", 
          "seas", 
          "urban",
          "validity",
          "zeros" 
) )




Error in (function (classes, fdef, mtable)  : unable to find an inherited method for function ‘proj4string<-’ for signature ‘"NULL", "character"


Sources

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

Source: Stack Overflow

Solution Source