Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use rlang::check_installed() #540

Open
wibeasley opened this issue Oct 10, 2024 · 0 comments
Open

use rlang::check_installed() #540

wibeasley opened this issue Oct 10, 2024 · 0 comments
Assignees

Comments

@wibeasley
Copy link
Member

Replace code like

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

with

rlang::check_installed(
  pkg     = "yaml",
  reason  = "to use `retrieve_credential_testing()` for package test suite."
)

reference:
https://r-pkgs.org/dependencies-in-practice.html#sec-dependencies-in-suggests

@wibeasley wibeasley self-assigned this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant