I have been getting lots of warnings working with the new version of sf and then converting to sp Spatial objects to work with INLA. It is great to hear you are working on updating to the new CRS methods. I hope this can resolve this for me. Also very excited to see INLA moving to github!
Anyway, just for your information as you move towards updating to R 4 and new CRS methods, I thought I'd post my problem, in case it helps:
1: In showSRID(SRS_string, format = "PROJ", multiline = "NO") :
Discarded ellps unknown in CRS definition: +proj=geocent +R=1 +units=m +no_defs
2: In showSRID(SRS_string, format = "PROJ", multiline = "NO") :
Discarded datum unknown in CRS definition
3: In showSRID(SRS_string, format = "PROJ", multiline = "NO") :
Discarded ellps unknown in CRS definition: +proj=geocent +R=1 +units=m +no_defs
4: In showSRID(SRS_string, format = "PROJ", multiline = "NO") :
Discarded datum unknown in CRS definition
When I plot the mesh in rgl, it looks okay, however, if I use the mesh in INLA::inla.mesh.project, with some coordinates also converted to sp from sf with "EPSG:4326" projection I get the same kind of warnings, and then when I plot the points on the globe, they don't look quite right especially near the poles.
I'm stuck at this point! I don't know whether to trust the results, given the warnings, and the plot not looking right. This code used to work before I upgraded my sf version (and presumably with it my PROJ6 version). But I guess I will wait for that blog post you mentioned which will hopefully shed light on this!
Thanks for all your work on INLA!
Cheers,
Russell