ateucher / lutz

Look up timezones of point coordinates
http://andyteucher.ca/lutz/
Other
58 stars 5 forks source link

Fix try call & related check #16

Closed gavinsimpson closed 1 year ago

gavinsimpson commented 1 year ago

This PR does two things, cherry-picking from #14.

  1. It uses silent = TRUE to not emit the error if thrown by the call wrapped in try(), and
  2. It uses inherits() to test for the "try-error" class instead of matching equality between class(x) and string "try-error". This latter usage now results in a NOTE under ´R CMD check´.
ateucher commented 1 year ago

Thanks!