开始使用免费开始使用

Run all tests in the package

Running all of the tests on the unitConverter package is important to verify the overall functionality and correctness of the package. It ensures that all the functions in the package behave as expected, produce the correct output, and handle different scenarios appropriately. By running tests, you can catch any potential bugs or regressions introduced during development or modifications to the package. It also promotes code quality, reliability, and confidence in the package's performance, making it more robust and trustworthy for users.

The testthat package and the unitConverter package at this point in development have been loaded for you.

本练习是课程的一部分

Developing R Packages

查看课程

练习说明

  • Run all of the tests in the unitConverter package with a single function call.

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Run all package tests
___
编辑并运行代码