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

Development tip: Check for partial matching as part of your testing & CI process #165

Closed
Bisaloo opened this issue Jun 13, 2023 · 1 comment

Comments

@Bisaloo
Copy link

Bisaloo commented Jun 13, 2023

You can change your options to generate warnings on partial matching:

options(
  warnPartialMatchAttr = TRUE,
  warnPartialMatchDollar = TRUE,
  warnPartialMatchArgs = TRUE 
)

But your options and Rprofile are ignored by R CMD check.

A way to still get warnings in your continuous integration is to integrate it to testthat by creating a special setup-options.R file, as in epiverse-trace/packagetemplate#61. This file could also be used to change any other options (but use with caution to not create situations where it's too difficult to debug).

@maelle
Copy link
Contributor

maelle commented Jun 13, 2023

thank you!!

@maelle maelle closed this as completed Jul 11, 2023
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

2 participants