# using epsg code integer or string representation
validate_crs(3857)
validate_crs("EPSG:4326")
# using a custom proj4 string
proj4string <- "+proj=longlat +datum=WGS84 +no_defs"
crs <- validate_crs(proj4string)
# using wkt2 (from above result)
crs <- validate_crs(crs$spatialReference$wkt)
Run the code above in your browser using DataLab