1. Learn
  2. /
  3. Courses
  4. /
  5. Developing R Packages

Connected

Exercise

Adding and testing a new function in the package

Another colleague has requested that the unitConverter package you've been working on expand its functionality. In this exercise, you will add a new function weight_converter that converts between different weight units. You'll then check to make sure all the package files load as expected.

The devtools and usethis packages have been loaded for you. The weight_converter function has been provided for you.

Instructions 1/3

undefined XP
    1
    2
    3
  • Find 100 kilograms in pounds using weight_converter.