Bắt đầu ngayBắt đầu miễn phí

Create a testing file

After creating the testing framework, it's important to start to set up testing files for each of your R functions. Setting up testing files for each R function in your unitConverter package allows you to systematically validate the behavior and correctness of your functions, ensuring their reliability and preventing issues in future updates.

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

Bài tập này là một phần của khóa học

Developing R Packages

Xem khóa học

Hướng dẫn bài tập

  • Generate a test file that contains tests checking the dist_converter function.

Bài tập tương tác thực hành trực tiếp

Hãy thử làm bài tập này bằng cách hoàn thành đoạn mã mẫu này.

# Create test file for dist_converter
___
Chỉnh sửa và Chạy Mã