poissonconsulting / chk

An R package for developers to check user-supplied function arguments
https://poissonconsulting.github.io/chk/
Other
48 stars 4 forks source link

Add `vld_namespace()` and `chk_namespace()` #129

Open joethorley opened 6 months ago

joethorley commented 6 months ago

based on the following but throwing a chk error.

  if (!requireNamespace("ggplot2", quietly = TRUE)) {
    stop(
      "Package \"ggplot2\" must be installed to use this function.",
      call. = FALSE
    )
  }