mapview icon indicating copy to clipboard operation
mapview copied to clipboard

Use check installed not require namespace for better UX

Open B-Nilson opened this issue 3 weeks ago • 0 comments

See issue #515

Did a find and replace within R/ for requireNamespace, then cleaned up related code.

Notably:

  • sapply(pkgs, ...) implementations are no longer needed as rlang::check_installed handles multiple packages
  • custom error messages no longer needed as rlang::check_installed is more clear
  • quietly = TRUE no longer needed as rlang::check_installed is quiet unless throwing an error

B-Nilson avatar Dec 08 '25 22:12 B-Nilson