What is the best unit test etiquette when building a package?

This page summarizes the projects mentioned and recommended in the original post on /r/Rlanguage

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • dplyr

    dplyr: A grammar of data manipulation

    The reason I've asked is that it feels wonky that at the top of each test script I have to load the library, and additionally, libraries such as dplyr don't appear to do the same thing in their tests, but I'm honestly not 100% clear as to why? SO - is that cool? Are there better methods out there? Should I just load the library in the tests/testthat/setup\*.R or tests/testthat/helper*.R files?

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts