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.
이 연습은 강의의 일부입니다
Developing R Packages
연습 안내
- Generate a test file that contains tests checking the
dist_converterfunction.
실습형 인터랙티브 연습
이 예제를 이 샘플 코드를 완성하여 풀어보세요.
# Create test file for dist_converter
___