emlab-ucsb / oceandatr

Offshore data preparation for prioritization package
https://emlab-ucsb.github.io/oceandatr/
GNU General Public License v3.0
4 stars 0 forks source link

Excessive (but not fatal) warnings and messages for `get_geomorphology` #36

Closed echelleburns closed 6 months ago

echelleburns commented 7 months ago

While building the tests for get_geomorphology, I'm seeing that I'm getting a lot of warnings and messages. They're all just messages/warnings that are inherent to what we're doing, so I'm not worried about them.

Messages: Spherical geometry (s2) switched off although coordinates are longitude/latitude, st_intersection assumes that they are planar x 24 Spherical geometry (s2) switched on

Warning(s): Warning messages: attribute variables are assumed to be spatially constant throughout all geometries x 24

Wondering if we can hide them from the user, unless a fatal warning or error occurs? Or if we could at least limit the x24 messages and warnings?

I've suppressed messages and warnings in the tests for this function.

jflowernet commented 7 months ago

Yep, good point: I've suppressed the warnings and messages for this function. @echelleburns you can remove the suppression calls from the tests when you want (probably a good idea to do so at some point just in case there are important messages/ warnings!)

echelleburns commented 6 months ago

Awesome, thanks! Just removed the warning and message suppression from the testthat code.