Guru's Verification engine ensures consistency, confidence, and trust in the knowledge your organization shares. Learn more.
Unit testing for R code can be performed by the testthat [1] package.
testthat
Resources:
[1] https://testthat.r-lib.org/