开始使用免费开始使用

Set package dependencies

Package dependencies are crucial in R package development. They ensure the proper functioning of packages by providing required functions, additional functionality, and examples. Dependencies promote code reusability, simplify package installation, and enhance package compatibility. Managing dependencies is essential for developing robust and efficient R packages.

Your boss has requested that you add ggplot2 as a suggested dependency, since some of the examples with our loaded datasets in unitConverter can be visualized well.

The usethis package has been loaded for you.

本练习是课程的一部分

Developing R Packages

查看课程

练习说明

  • Add the ggplot2 package as a suggested dependency with version 3.0.0 or higher.

交互式实操练习

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

# Suggest ggplot2 >= 3.0.0
___
编辑并运行代码